Make WordPress Core

Ticket #31276: 31267.patch

File 31267.patch, 815 bytes (added by azaozz, 10 years ago)
  • src/wp-includes/script-loader.php

     
    288288
    289289        $scripts->add( 'comment-reply', "/wp-includes/js/comment-reply$suffix.js", array(), false, 1 );
    290290
    291         $scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2011-02-23');
     291        $scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2011-02-23' );
     292        did_action( 'init' ) && $scripts->add_data( 'json2', 'conditional', 'lt IE 8' );
    292293
    293294        $scripts->add( 'underscore', "/wp-includes/js/underscore$dev_suffix.js", array(), '1.6.0', 1 );
    294295        $scripts->add( 'backbone', "/wp-includes/js/backbone$dev_suffix.js", array( 'underscore','jquery' ), '1.1.2', 1 );