Make WordPress Core

Ticket #23811: 23811.2.diff

File 23811.2.diff, 719 bytes (added by kovshenin, 12 years ago)
  • wp-includes/default-constants.php

     
    5555        // Add define('WP_DEBUG_DISPLAY', null); to wp-config.php use the globally configured setting for
    5656        // display_errors and not force errors to be displayed. Use false to force display_errors off.
    5757        if ( !defined('WP_DEBUG_DISPLAY') )
    58                 define( 'WP_DEBUG_DISPLAY', true );
     58                define( 'WP_DEBUG_DISPLAY', ! ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) );
    5959
    6060        // Add define('WP_DEBUG_LOG', true); to enable error logging to wp-content/debug.log.
    6161        if ( !defined('WP_DEBUG_LOG') )