WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/27/2008 12:18:38 PM (12 years ago)
Author:
azaozz
Message:

Faster hide-if-no-js, if-js-closed, etc. needed when loading scripts in the footer.

File:
1 edited

Legend:

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

    r10222 r10258  
    4242    $scripts->default_version = get_bloginfo( 'version' );
    4343
    44     $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081210' );
     44    $scripts->add( 'common', '/wp-admin/js/common.js', array('jquery', 'hoverIntent'), '20081226' );
    4545    $scripts->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' );
    4646
     
    162162            'l10n_print_after' => 'try{convertEntities(pwsL10n);}catch(e){};'
    163163        ) );
    164         $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20081211' );
     164        $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20081226' );
    165165        $scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
    166166            'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
     
    180180            'l10n_print_after' => 'try{convertEntities(slugL10n);}catch(e){};'
    181181        ) );
    182         $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug'), '20081217' );
     182        $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug'), '20081226' );
    183183        $scripts->localize( 'post', 'postL10n', array(
    184184            'tagsUsed' =>  __('Tags used on this post:'),
     
    206206            'l10n_print_after' => 'try{convertEntities(postL10n);}catch(e){};'
    207207        ) );
    208         $scripts->add( 'page', '/wp-admin/js/page.js', array('jquery', 'slug', 'wp-lists', 'postbox'), '20081210' );
     208        $scripts->add( 'page', '/wp-admin/js/page.js', array('jquery', 'slug', 'wp-lists', 'postbox'), '20081226' );
    209209        $scripts->localize( 'page', 'postL10n', array(
    210210            'cancel' => __('Cancel'),
     
    227227            'l10n_print_after' => 'try{convertEntities(postL10n);}catch(e){};'
    228228        ) );
    229         $scripts->add( 'link', '/wp-admin/js/link.js', array('jquery-ui-tabs', 'wp-lists', 'postbox'), '20081210' );
    230         $scripts->add( 'comment', '/wp-admin/js/comment.js', array('jquery'), '20081210' );
     229        $scripts->add( 'link', '/wp-admin/js/link.js', array('jquery-ui-tabs', 'wp-lists', 'postbox'), '20081226' );
     230        $scripts->add( 'comment', '/wp-admin/js/comment.js', array('jquery'), '20081226' );
    231231        $scripts->localize( 'comment', 'commentL10n', array(
    232232            'cancel' => __('Cancel'),
     
    263263        $scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20081210' );
    264264
    265         $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081210' );
     265        $scripts->add( 'inline-edit-post', '/wp-admin/js/inline-edit-post.js', array( 'jquery', 'jquery-form', 'suggest' ), '20081226' );
    266266        $scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
    267267            'error' => __('Error while saving the changes.'),
     
    271271        ) );
    272272
    273         $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081210' );
     273        $scripts->add( 'inline-edit-tax', '/wp-admin/js/inline-edit-tax.js', array( 'jquery', 'jquery-form' ), '20081226' );
    274274        $scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array(
    275275            'error' => __('Error while saving the changes.'),
     
    285285        $scripts->add( 'farbtastic', '/wp-admin/js/farbtastic.js', array('jquery'), '1.2' );
    286286
    287         $scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox' ), '20081210' );
     287        $scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox' ), '20081226' );
    288288
    289289        $scripts->add( 'hoverIntent', '/wp-includes/js/hoverIntent.js', array('jquery'), '20081210' );
     
    322322
    323323    $styles->add( 'ie', '/wp-admin/css/ie.css', array(), '20081210' );
    324     $styles->add_data( 'ie', 'conditional', 'gte IE 6' );
     324    $styles->add_data( 'ie', 'conditional', 'lte IE 7' );
    325325
    326326    $styles->add( 'colors', true, array(), '20081210' ); // Register "meta" stylesheet for admin colors
     
    330330    $styles->add_data( 'colors-classic', 'rtl', true );
    331331
    332     $styles->add( 'global', '/wp-admin/css/global.css', array(), '20081210' );
     332    $styles->add( 'global', '/wp-admin/css/global.css', array(), '20081226' );
    333333    $styles->add( 'media', '/wp-admin/css/media.css', array(), '20081210' );
    334334    $styles->add( 'widgets', '/wp-admin/css/widgets.css', array(), '20081210' );
     
    341341    $styles->add( 'plugin-install', '/wp-admin/css/plugin-install.css', array(), '20081210' );
    342342    $styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' );
     343    $styles->add( 'no-js', '/wp-admin/css/no-js.css', array(), '20081225' );
    343344
    344345    foreach ( $rtl_styles as $rtl_style )
Note: See TracChangeset for help on using the changeset viewer.