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.
Built from https://develop.svn.wordpress.org/trunk@36808


git-svn-id: http://core.svn.wordpress.org/trunk@36775 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-03-02 22:14:25 +00:00
parent a0978ec8b4
commit 1dc98b2e49
3 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ class WP_Links_List_Table extends WP_List_Table {
'selected' => $cat_id,
'name' => 'cat_id',
'taxonomy' => 'link_category',
'show_option_all' => __( 'All categories' ),
'show_option_all' => get_taxonomy( 'link_category' )->labels->all_items,
'hide_empty' => true,
'hierarchical' => 1,
'show_count' => 0,

View File

@ -426,7 +426,7 @@ class WP_Posts_List_Table extends WP_List_Table {
if ( is_object_in_taxonomy( $this->screen->post_type, 'category' ) ) {
$dropdown_options = array(
'show_option_all' => __( 'All categories' ),
'show_option_all' => get_taxonomy( 'category' )->labels->all_items,
'hide_empty' => 0,
'hierarchical' => 1,
'show_count' => 0,

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-beta1-36807';
$wp_version = '4.5-beta1-36808';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.