WordPress.org

Make WordPress Core

Ticket #18096: all_links_context.patch

File all_links_context.patch, 1.9 KB (added by pavelevap, 3 years ago)
  • wp-admin/menu.php

     
    9191        $submenu['upload.php'][10] = array( _x('Add New', 'file'), 'upload_files', 'media-new.php'); 
    9292 
    9393$menu[15] = array( __('Links'), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'div' ); 
    94         $submenu['link-manager.php'][5] = array( __('All Links'), 'manage_links', 'link-manager.php' ); 
     94        $submenu['link-manager.php'][5] = array( _x('All Links', 'left admin menu'), 'manage_links', 'link-manager.php' ); 
    9595        /* translators: add new links */ 
    9696        $submenu['link-manager.php'][10] = array( _x('Add New', 'link'), 'manage_links', 'link-add.php' ); 
    9797        $submenu['link-manager.php'][15] = array( __('Link Categories'), 'manage_categories', 'edit-tags.php?taxonomy=link_category' ); 
  • wp-includes/default-widgets.php

     
    105105 
    106106                if ( is_admin() && !$category ) { 
    107107                        // Display All Links widget as such in the widgets screen 
    108                         echo $before_widget . $before_title. __('All Links') . $after_title . $after_widget; 
     108                        echo $before_widget . $before_title. _x('All Links', 'Links widget') . $after_title . $after_widget; 
    109109                        return; 
    110110                } 
    111111 
     
    140140                <p> 
    141141                <label for="<?php echo $this->get_field_id('category'); ?>" class="screen-reader-text"><?php _e('Select Link Category'); ?></label> 
    142142                <select class="widefat" id="<?php echo $this->get_field_id('category'); ?>" name="<?php echo $this->get_field_name('category'); ?>"> 
    143                 <option value=""><?php _e('All Links'); ?></option> 
     143                <option value=""><?php _ex('All Links', 'Links widget'); ?></option> 
    144144                <?php 
    145145                foreach ( $link_cats as $link_cat ) { 
    146146                        echo '<option value="' . intval($link_cat->term_id) . '"'