Make WordPress Core

Changeset 36808


Ignore:
Timestamp:
03/02/2016 10:13:14 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Taxonomy: Remove unnecessary 'All categories' string on Edit Posts and Edit Links screens and use taxonomy's all_items label instead.

Props johnbillion.
Fixes #36049.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-links-list-table.php

    r36792 r36808  
    104104                'name' => 'cat_id',
    105105                'taxonomy' => 'link_category',
    106                 'show_option_all' => __( 'All categories' ),
     106                'show_option_all' => get_taxonomy( 'link_category' )->labels->all_items,
    107107                'hide_empty' => true,
    108108                'hierarchical' => 1,
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r36572 r36808  
    427427            if ( is_object_in_taxonomy( $this->screen->post_type, 'category' ) ) {
    428428                $dropdown_options = array(
    429                     'show_option_all' => __( 'All categories' ),
     429                    'show_option_all' => get_taxonomy( 'category' )->labels->all_items,
    430430                    'hide_empty' => 0,
    431431                    'hierarchical' => 1,
Note: See TracChangeset for help on using the changeset viewer.