Ticket #46825: 46825.patch
| File 46825.patch, 1.2 KB (added by , 7 years ago) |
|---|
-
src/wp-settings.php
48 48 // Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, SCRIPT_DEBUG, WP_CONTENT_DIR and WP_CACHE. 49 49 wp_initial_constants(); 50 50 51 // Check if we're in WP_DEBUG mode. 52 wp_debug_mode(); 53 51 54 // Make sure we register the shutdown handler for fatal errors as soon as possible. 52 55 wp_register_fatal_error_handler(); 53 56 … … 76 79 // Start loading timer. 77 80 timer_start(); 78 81 79 // Check if we're in WP_DEBUG mode.80 wp_debug_mode();81 82 82 /** 83 83 * Filters whether to enable loading of the advanced-cache.php drop-in. 84 84 * -
src/wp-includes/load.php
339 339 ini_set( 'log_errors', 1 ); 340 340 ini_set( 'error_log', $log_path ); 341 341 } 342 343 define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true ); 342 344 } else { 343 345 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 ); 344 346 }