Make WordPress Core

Ticket #52226: 52226.diff

File 52226.diff, 1.0 KB (added by peterwilsoncc, 4 years ago)
  • src/wp-load.php

    diff --git a/src/wp-load.php b/src/wp-load.php
    index 3f4d764bfc..5a0b8f1ccc 100644
    a b if ( ! defined( 'ABSPATH' ) ) { 
    2121        define( 'ABSPATH', __DIR__ . '/' );
    2222}
    2323
    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 */
     30if ( 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}
    2533
    2634/*
    2735 * If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php