WordPress.org

Make WordPress Core

Changeset 18233


Ignore:
Timestamp:
06/10/11 16:43:48 (3 years ago)
Author:
ryan
Message:

Disambiguation for Add New links in admin bar. Props nacin. see #16406

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r18220 r18233  
    247247 
    248248    if ( current_user_can( 'upload_files' ) ) 
    249         $actions[ 'media-new.php' ] = array( __( 'Media' ), 'upload_files', 'new-media' ); 
     249        $actions[ 'media-new.php' ] = array( _x( 'Media', 'add new from admin bar' ), 'upload_files', 'new-media' ); 
    250250 
    251251    if ( current_user_can( 'manage_links' ) ) 
    252         $actions[ 'link-add.php' ] = array( __( 'Link' ), 'manage_links', 'new-link' ); 
     252        $actions[ 'link-add.php' ] = array( _x( 'Link', 'add new from admin bar' ), 'manage_links', 'new-link' ); 
    253253 
    254254    if ( current_user_can( 'create_users' ) || current_user_can( 'promote_users' ) ) 
    255         $actions[ 'user-new.php' ] = array( __( 'User' ), 'create_users', 'new-user' ); 
     255        $actions[ 'user-new.php' ] = array( _x( 'User', 'add new from admin bar' ), 'create_users', 'new-user' ); 
    256256 
    257257    if ( ! is_multisite() && current_user_can( 'install_themes' ) ) 
    258         $actions[ 'theme-install.php' ] = array( __( 'Theme' ), 'install_themes', 'new-theme' ); 
     258        $actions[ 'theme-install.php' ] = array( _x( 'Theme', 'add new from admin bar' ), 'install_themes', 'new-theme' ); 
    259259 
    260260    if ( ! is_multisite() && current_user_can( 'install_plugins' ) ) 
    261         $actions[ 'plugin-install.php' ] = array( __( 'Plugin' ), 'install_plugins', 'new-plugin' ); 
     261        $actions[ 'plugin-install.php' ] = array( _x( 'Plugin', 'add new from admin bar' ), 'install_plugins', 'new-plugin' ); 
    262262             
    263263    if ( empty( $actions ) ) 
Note: See TracChangeset for help on using the changeset viewer.