From 1b91fc660fc6ac9e7fb3818b97994f8ffaf319cc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 2 Mar 2016 22:13:14 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@36808 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-links-list-table.php | 2 +- src/wp-admin/includes/class-wp-posts-list-table.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/class-wp-links-list-table.php b/src/wp-admin/includes/class-wp-links-list-table.php index 9f3f5c85d5..e4560e480f 100644 --- a/src/wp-admin/includes/class-wp-links-list-table.php +++ b/src/wp-admin/includes/class-wp-links-list-table.php @@ -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, diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index 8cea725a27..ce68efccbf 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -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,