Skip to content

Commit 2c851bc

Browse files
fixed wporg plugin check errors missing_direct_file_access_protection (#853)
Co-authored-by: flowdee <hello@flowdee.dev>
1 parent c9105b3 commit 2c851bc

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

includes/fs-essential-functions.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
1111
* @since 1.1.5
1212
*/
13+
if ( ! defined( 'ABSPATH' ) ) {
14+
exit;
15+
}
1316

1417
if ( ! function_exists( 'fs_normalize_path' ) ) {
1518
if ( function_exists( 'wp_normalize_path' ) ) {

includes/managers/class-fs-debug-manager.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* @package Freemius
77
* @since 2.6.2
88
*/
9+
if ( ! defined( 'ABSPATH' ) ) {
10+
exit;
11+
}
912

1013
class FS_DebugManager {
1114

templates/checkout.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
66
* @since 2.9.0
77
*/
8-
8+
if ( ! defined( 'ABSPATH' ) ) {
9+
exit;
10+
}
911
/**
1012
* @var array $VARS
1113
* @var Freemius $fs

0 commit comments

Comments
 (0)