Make WordPress Core

Changeset 50914


Ignore:
Timestamp:
05/14/2021 07:26:09 PM (9 months ago)
Author:
jorbin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-load.php

    r50447 r50914  
    2626 * it's best to add a dummy function to the wp-config.php file, but as this call to the function
    2727 * is run prior to wp-config.php loading, it is wrapped in a function_exists() check.
     28 *
     29 * Initialize error reporting to a known set of levels.
     30 *
     31 * This will be adapted in wp_debug_mode located in wp-includes/load.php based on WP_DEBUG.
     32 * @see http://php.net/manual/en/errorfunc.constants.php List of known error levels.
    2833 */
    2934if ( function_exists( 'error_reporting' ) ) {
Note: See TracChangeset for help on using the changeset viewer.