]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/compat.php
WordPress 4.1.4-scripts
[autoinstalls/wordpress.git] / wp-includes / compat.php
index 83a8c64652b4679b720df879e02ac903e75e7d42..ab4045250a6e434a62f19c4dc20d196a9efad1a9 100644 (file)
@@ -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 );
+}