WordPress.org

Make WordPress Core

Ticket #46825: 46825.2.patch

File 46825.2.patch, 658 bytes (added by SergeyBiryukov, 16 months ago)
  • src/wp-includes/default-constants.php

     
    7575        // Add define( 'WP_DEBUG', true ); to wp-config.php to enable display of notices during development.
    7676        if ( ! defined( 'WP_DEBUG' ) ) {
    7777                define( 'WP_DEBUG', false );
     78        } elseif ( WP_DEBUG && ! defined( 'WP_DISABLE_FATAL_ERROR_HANDLER' ) ) {
     79                define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true );
    7880        }
    7981
    8082        // Add define( 'WP_DEBUG_DISPLAY', null ); to wp-config.php use the globally configured setting for