diff --git a/wp-includes/compat.php b/wp-includes/compat.php index 83a8c64652..ab4045250a 100644 --- a/wp-includes/compat.php +++ b/wp-includes/compat.php @@ -122,4 +122,10 @@ function hash_equals( $a, $b ) { return $result === 0; } -endif; \ No newline at end of file +endif; + +// JSON_PRETTY_PRINT was introduced in PHP 5.4 +// Defined here to prevent a notice when using it with wp_json_encode() +if ( ! defined( 'JSON_PRETTY_PRINT' ) ) { + define( 'JSON_PRETTY_PRINT', 128 ); +} diff --git a/wp-includes/version.php b/wp-includes/version.php index 25bc96db58..4173838582 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30074'; +$wp_version = '4.1-alpha-30075'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.