Skip to content

Commit

Permalink
Never display WP_DEBUG notices during XML-RPC requests. fixes #38.
Browse files Browse the repository at this point in the history
  • Loading branch information
nacin committed Jun 24, 2012
1 parent 55149e3 commit f98366a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );

// Never display WP_DEBUG notices during XML-RPC requests.
if ( defined( 'XMLRPC_REQUEST' ) )
define( 'WP_DEBUG_DISPLAY', false );

// jQuery staging URLs
if ( JQUERY_STAGING && ! defined( 'XMLRPC_REQUEST' ) )
ob_start( 'jquery_com_staging_urls' );
Expand Down

0 comments on commit f98366a

Please sign in to comment.