diff --git a/src/wp-load.php b/src/wp-load.php
index 3f4d764bfc..5a0b8f1ccc 100644
|
a
|
b
|
if ( ! defined( 'ABSPATH' ) ) { |
| 21 | 21 | define( 'ABSPATH', __DIR__ . '/' ); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | | error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR ); |
| | 24 | /* |
| | 25 | * The error_reporting() function can be disabled in php.ini and may be done so for |
| | 26 | * security purposes. On systems with this function disabled it's best to add a dummy |
| | 27 | * function to the wp-config.php file but as this call to the function is run prior |
| | 28 | * to wp-config.php loading, it is wrapped in a function_exists() check. |
| | 29 | */ |
| | 30 | if ( function_exists( 'error_reporting' ) ) { |
| | 31 | error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR ); |
| | 32 | } |
| 25 | 33 | |
| 26 | 34 | /* |
| 27 | 35 | * If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php |