From e37057bd6be7dc344f1cc561665e6de41592f25f Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Fri, 14 May 2021 19:28:00 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@50914 git-svn-id: http://core.svn.wordpress.org/trunk@50523 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-load.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index ae7b88c92a..f1ddd174b0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50913'; +$wp_version = '5.8-alpha-50914'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-load.php b/wp-load.php index 3d8f19b92b..622865959e 100644 --- a/wp-load.php +++ b/wp-load.php @@ -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 );