| @@ -8,9 +8,17 @@ | ||
| 8 | 8 | * |
| 9 | 9 | * @package MainWP/Bootstrap |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -// phpcs:disable -- required to support custom wp-config.php file location | |
| 12 | +// phpcs:disable WordPress.Security.PluginSecurity.MissingDirectFileAccessProtection | |
| 13 | + | |
| 14 | +/** | |
| 15 | + * This file must execute before WordPress loads to locate wp-load.php, | |
| 16 | + * so the standard ABSPATH check would break functionality. | |
| 17 | + * | |
| 18 | + * Do not prevent direct access ! defined( 'ABSPATH' ) exit | |
| 19 | + * to support custom wp-config.php file location, but do prevent direct access if WP is not loaded. | |
| 20 | + */ | |
| 13 | 21 | |
| 14 | 22 | // set php.ini variables. |
| 15 | 23 | @ignore_user_abort( true ); |
| 16 | 24 | if ( false !== strpos( ini_get( 'disable_functions' ), 'set_time_limit' ) ) { |