Make WordPress Core


Ignore:
Timestamp:
10/29/2010 07:25:58 AM (14 years ago)
Author:
westi
Message:

More admin bar updates. See #14772 props filosofo.
Moves js out into seperate file.
Respects WP_SHOW_ADMIN_BAR.
Moved shortlink to top-level
Removed admin bar from non-multisite admin pages.
Set eol-style on new files.

File:
1 edited

Legend:

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

    r16038 r16070  
    258258    $scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter' ), '20100925' );
    259259    $scripts->add_data( 'user-profile', 'group', 1 );   
     260
     261    $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", false, '20101028');
     262    $scripts->add_data( 'admin-bar', 'group', 1 ); 
     263    $scripts->localize( 'admin-bar', 'adminBarL10n', array(
     264        'url' => __( 'URL:' ),
     265        'noShortlink' => __( 'No shortlink available for this page.' ),
     266    ) );
    260267   
    261268    if ( is_admin() ) {
     
    494501   
    495502    // Admin bar
    496     $styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20101028' );
     503    $styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20101029' );
    497504    $styles->add( 'super-admin-bar', "/wp-includes/css/super-admin-bar$suffix.css", array(), '20101028' );
    498505
Note: See TracChangeset for help on using the changeset viewer.