diff --git a/wp-includes/load.php b/wp-includes/load.php index ec59459f80..44b4ed255f 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -300,8 +300,9 @@ function wp_debug_mode() { } else { 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 ); } - if ( defined( 'XMLRPC_REQUEST' ) ) + if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) ) { ini_set( 'display_errors', 0 ); + } } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 3e074e39bb..8126785592 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36529'; +$wp_version = '4.5-alpha-36530'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.