Ticket #23811: 23811.3.diff
File 23811.3.diff, 1006 bytes (added by , 12 years ago) |
---|
-
wp-includes/load.php
253 253 * When WP_DEBUG_LOG is true, errors will be logged to wp-content/debug.log. 254 254 * WP_DEBUG_LOG defaults to false. 255 255 * 256 * Errors are never displayed for XML-RPC requests. 257 * 256 258 * @access private 257 259 * @since 3.0.0 258 260 */ … … 260 262 if ( WP_DEBUG ) { 261 263 error_reporting( E_ALL ); 262 264 263 if ( WP_DEBUG_DISPLAY ) 265 if ( defined( 'XMLRPC_REQUEST' ) ) 266 ini_set( 'display_errors', 0 ); 267 elseif ( WP_DEBUG_DISPLAY ) 264 268 ini_set( 'display_errors', 1 ); 265 269 elseif ( null !== WP_DEBUG_DISPLAY ) 266 270 ini_set( 'display_errors', 0 ); … … 271 275 } 272 276 } else { 273 277 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 ); 278 if ( defined( 'XMLRPC_REQUEST' ) ) 279 ini_set( 'display_errors', 0 ); 274 280 } 275 281 } 276 282