mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 04:48:25 +01:00
Bootstrap/Load: Improve docs for error reporting
Make it clearer that wp_debug_mode will change this based on the WP_DEBUG constant and also make it clearer where this list comes from. Props sasagar, schlessera, jorbin. Fixes #41902. git-svn-id: https://develop.svn.wordpress.org/trunk@50914 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6768039f21
commit
dc1d54ae3a
@ -25,6 +25,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
* The error_reporting() function can be disabled in php.ini. On systems where that is the case,
|
||||
* it's best to add a dummy function to the wp-config.php file, but as this call to the function
|
||||
* is run prior to wp-config.php loading, it is wrapped in a function_exists() check.
|
||||
*
|
||||
* Initialize error reporting to a known set of levels.
|
||||
*
|
||||
* This will be adapted in wp_debug_mode located in wp-includes/load.php based on WP_DEBUG.
|
||||
* @see http://php.net/manual/en/errorfunc.constants.php List of known error levels.
|
||||
*/
|
||||
if ( function_exists( 'error_reporting' ) ) {
|
||||
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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user