WordPress.org

Make WordPress Core

Ticket #30139: 30139.diff

File 30139.diff, 465 bytes (added by markjaquith, 6 years ago)
  • src/wp-includes/compat.php

    function hash_equals( $a, $b ) { 
    122122
    123123        return $result === 0;
    124124}
    125 endif;
    126  No newline at end of file
     125endif;
     126
     127// Introduced in PHP 5.4; define it to prevent a notice
     128if ( ! defined( 'JSON_PRETTY_PRINT' ) ) {
     129        define( 'JSON_PRETTY_PRINT', 128 );
     130}