Make WordPress Core


Ignore:
Timestamp:
05/25/2011 01:04:12 AM (13 years ago)
Author:
azaozz
Message:

Replace .attr() with .prop() as per jQuery 1.6.1. Also fixes couple places where the JS wasn't working because attr('some', ) does not remove the HTML property now, see #17311

File:
1 edited

Legend:

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

    r18024 r18027  
    6565    $scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20101110' );
    6666
    67     $scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20110520' );
     67    $scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20110524' );
    6868    $scripts->add_data( 'common', 'group', 1 );
    6969    $scripts->localize( 'common', 'commonL10n', array(
     
    110110    ) );
    111111
    112     $scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), '20110515' );
     112    $scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), '20110524' );
    113113    $scripts->add_data( 'autosave', 'group', 1 );
    114114
     
    221221    }
    222222
    223     $scripts->add( 'swfupload-handlers', "/wp-includes/js/swfupload/handlers$suffix.js", array('swfupload-all', 'jquery'), '2201-20110512');
     223    $scripts->add( 'swfupload-handlers', "/wp-includes/js/swfupload/handlers$suffix.js", array('swfupload-all', 'jquery'), '2201-20110524');
    224224    $max_upload_size = ( (int) ( $max_up = @ini_get('upload_max_filesize') ) < (int) ( $max_post = @ini_get('post_max_size') ) ) ? $max_up : $max_post;
    225225    if ( empty($max_upload_size) )
     
    267267    ) );
    268268
    269     $scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter' ), '20110429' );
     269    $scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter' ), '20110524' );
    270270    $scripts->add_data( 'user-profile', 'group', 1 );
    271271
     
    273273    $scripts->add_data( 'admin-bar', 'group', 1 );
    274274
    275     $scripts->add( 'wplink', "/wp-includes/js/tinymce/plugins/wplink/js/wplink$suffix.js", array( 'jquery', 'wpdialogs' ), '20110501' );
     275    $scripts->add( 'wplink', "/wp-includes/js/tinymce/plugins/wplink/js/wplink$suffix.js", array( 'jquery', 'wpdialogs' ), '20110524' );
    276276    $scripts->add_data( 'wplink', 'group', 1 );
    277277    $scripts->localize( 'wplink', 'wpLinkL10n', array(
     
    313313        $scripts->add_data( 'admin-custom-fields', 'group', 1 );
    314314
    315         $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags', 'jquery-query'), '20110521' );
     315        $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags', 'jquery-query'), '20110524' );
    316316        $scripts->add_data( 'admin-comments', 'group', 1 );
    317317        $scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
     
    322322        ) );
    323323
    324         $scripts->add( 'xfn', "/wp-admin/js/xfn$suffix.js", array('jquery'), '20100403' );
     324        $scripts->add( 'xfn', "/wp-admin/js/xfn$suffix.js", array('jquery'), '20110524' );
    325325        $scripts->add_data( 'xfn', 'group', 1 );
    326326
    327         $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable'), '20110518' );
     327        $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable'), '20110524' );
    328328        $scripts->add_data( 'postbox', 'group', 1 );
    329329
    330         $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox'), '20110515' );
     330        $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox'), '20110524' );
    331331        $scripts->add_data( 'post', 'group', 1 );
    332332        $scripts->localize( 'post', 'postL10n', array(
     
    357357        ) );
    358358
    359         $scripts->add( 'link', "/wp-admin/js/link$suffix.js", array('wp-lists', 'postbox'), '20090526' );
     359        $scripts->add( 'link', "/wp-admin/js/link$suffix.js", array('wp-lists', 'postbox'), '20110524' );
    360360        $scripts->add_data( 'link', 'group', 1 );
    361361
     
    386386        $scripts->add_data( 'theme-preview', 'group', 1 );
    387387
    388         $scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest' ), '20110429' );
     388        $scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery', 'suggest' ), '20110524' );
    389389        $scripts->add_data( 'inline-edit-post', 'group', 1 );
    390390        $scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
     
    423423        $scripts->add_data( 'media', 'group', 1 );
    424424
    425         $scripts->add( 'image-edit', "/wp-admin/js/image-edit$suffix.js", array('jquery', 'json2', 'imgareaselect'), '20110429' );
     425        $scripts->add( 'image-edit', "/wp-admin/js/image-edit$suffix.js", array('jquery', 'json2', 'imgareaselect'), '20110524' );
    426426        $scripts->add_data( 'image-edit', 'group', 1 );
    427427
     
    437437
    438438        // Navigation Menus
    439         $scripts->add( 'nav-menu', "/wp-admin/js/nav-menu$suffix.js", array('jquery-ui-sortable'), '20110429' );
     439        $scripts->add( 'nav-menu', "/wp-admin/js/nav-menu$suffix.js", array('jquery-ui-sortable'), '20110524' );
    440440        $scripts->localize( 'nav-menu', 'navMenuL10n', array(
    441441            'noResultsFound' => _x('No results found.', 'search results'),
Note: See TracChangeset for help on using the changeset viewer.