Ticket #18096: all_links_context.patch
File all_links_context.patch, 1.9 KB (added by , 12 years ago) |
---|
-
wp-admin/menu.php
91 91 $submenu['upload.php'][10] = array( _x('Add New', 'file'), 'upload_files', 'media-new.php'); 92 92 93 93 $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' ); 95 95 /* translators: add new links */ 96 96 $submenu['link-manager.php'][10] = array( _x('Add New', 'link'), 'manage_links', 'link-add.php' ); 97 97 $submenu['link-manager.php'][15] = array( __('Link Categories'), 'manage_categories', 'edit-tags.php?taxonomy=link_category' ); -
wp-includes/default-widgets.php
105 105 106 106 if ( is_admin() && !$category ) { 107 107 // 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; 109 109 return; 110 110 } 111 111 … … 140 140 <p> 141 141 <label for="<?php echo $this->get_field_id('category'); ?>" class="screen-reader-text"><?php _e('Select Link Category'); ?></label> 142 142 <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> 144 144 <?php 145 145 foreach ( $link_cats as $link_cat ) { 146 146 echo '<option value="' . intval($link_cat->term_id) . '"'