WordPress.org

Make WordPress Core

Changeset 31526


Ignore:
Timestamp:
02/23/2015 11:03:19 PM (7 years ago)
Author:
azaozz
Message:

Load json2.js only in IE7 and older. Fixes #31276.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r31409 r31526  
    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 );
Note: See TracChangeset for help on using the changeset viewer.