Make WordPress Core

Changeset 24564


Ignore:
Timestamp:
07/05/2013 05:38:14 PM (11 years ago)
Author:
markjaquith
Message:

Don't display errors for XML-RPC requests, as they malform the response.

fixes #23811. props kovshenin, markoheijnen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/load.php

    r24288 r24564  
    273273        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 );
    274274    }
     275    if ( defined( 'XMLRPC_REQUEST' ) )
     276        ini_set( 'display_errors', 0 );
    275277}
    276278
Note: See TracChangeset for help on using the changeset viewer.