WordPress.org

Make WordPress Core

Ticket #18096: 18096.patch

File 18096.patch, 2.2 KB (added by SergeyBiryukov, 7 years ago)
  • wp-admin/menu.php

     
    5959        $submenu['upload.php'][10] = array( _x('Add New', 'file'), 'upload_files', 'media-new.php');
    6060
    6161$menu[15] = array( __('Links'), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'div' );
    62         $submenu['link-manager.php'][5] = array( __('All Links'), 'manage_links', 'link-manager.php' );
     62        $submenu['link-manager.php'][5] = array( _x('All Links', 'admin menu'), 'manage_links', 'link-manager.php' );
    6363        /* translators: add new links */
    6464        $submenu['link-manager.php'][10] = array( _x('Add New', 'link'), 'manage_links', 'link-add.php' );
    6565        $submenu['link-manager.php'][15] = array( __('Link Categories'), 'manage_categories', 'edit-tags.php?taxonomy=link_category' );
  • wp-includes/default-widgets.php

     
    103103                $show_images = isset($instance['images']) ? $instance['images'] : true;
    104104                $category = isset($instance['category']) ? $instance['category'] : false;
    105105
    106                 if ( is_admin() && !$category ) {
    107                         // Display All Links widget as such in the widgets screen
    108                         echo $before_widget . $before_title. __('All Links') . $after_title . $after_widget;
    109                         return;
    110                 }
    111 
    112106                $before_widget = preg_replace('/id="[^"]*"/','id="%id"', $before_widget);
    113107                wp_list_bookmarks(apply_filters('widget_links_args', array(
    114108                        'title_before' => $before_title, 'title_after' => $after_title,
     
    140134                <p>
    141135                <label for="<?php echo $this->get_field_id('category'); ?>" class="screen-reader-text"><?php _e('Select Link Category'); ?></label>
    142136                <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>
     137                <option value=""><?php _ex('All Links', 'links widget'); ?></option>
    144138                <?php
    145139                foreach ( $link_cats as $link_cat ) {
    146140                        echo '<option value="' . intval($link_cat->term_id) . '"'