Load json2.js only in IE7 and older. Fixes #31276.
git-svn-id: https://develop.svn.wordpress.org/trunk@31526 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6bd6da908e
commit
4ca703e03b
@ -288,7 +288,8 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'comment-reply', "/wp-includes/js/comment-reply$suffix.js", array(), false, 1 );
|
||||
|
||||
$scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2011-02-23');
|
||||
$scripts->add( 'json2', "/wp-includes/js/json2$suffix.js", array(), '2011-02-23' );
|
||||
did_action( 'init' ) && $scripts->add_data( 'json2', 'conditional', 'lt IE 8' );
|
||||
|
||||
$scripts->add( 'underscore', "/wp-includes/js/underscore$dev_suffix.js", array(), '1.6.0', 1 );
|
||||
$scripts->add( 'backbone', "/wp-includes/js/backbone$dev_suffix.js", array( 'underscore','jquery' ), '1.1.2', 1 );
|
||||
|
Loading…
Reference in New Issue
Block a user