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 ae7b56a302..209c956fa9 100644
a
|
b
|
class WP_Links_List_Table extends WP_List_Table { |
114 | 114 | 'orderby' => 'name', |
115 | 115 | ); |
116 | 116 | |
117 | | echo '<label class="screen-reader-text" for="cat_id">' . __( 'Filter by category' ) . '</label>'; |
| 117 | echo '<label class="screen-reader-text" for="cat_id">' . get_taxonomy( 'link_category' )->labels->filter_by_category . '</label>'; |
118 | 118 | |
119 | 119 | wp_dropdown_categories( $dropdown_options ); |
120 | 120 | |
diff --git a/src/wp-admin/includes/class-wp-list-table.php b/src/wp-admin/includes/class-wp-list-table.php
index 5797bbcc1a..e2b306e38f 100644
a
|
b
|
class WP_List_Table { |
633 | 633 | |
634 | 634 | $m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0; |
635 | 635 | ?> |
636 | | <label for="filter-by-date" class="screen-reader-text"><?php _e( 'Filter by date' ); ?></label> |
| 636 | <label for="filter-by-date" class="screen-reader-text"><?php echo get_post_type_object( $post_type )->labels->filter_by_date; ?></label> |
637 | 637 | <select name="m" id="filter-by-date"> |
638 | 638 | <option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option> |
639 | 639 | <?php |
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 a82bad702d..ec3972283a 100644
a
|
b
|
class WP_Posts_List_Table extends WP_List_Table { |
456 | 456 | 'selected' => $cat, |
457 | 457 | ); |
458 | 458 | |
459 | | echo '<label class="screen-reader-text" for="cat">' . __( 'Filter by category' ) . '</label>'; |
| 459 | echo '<label class="screen-reader-text" for="cat">' . get_post_type_object( $post_type )->labels->filter_by_category . '</label>'; |
460 | 460 | wp_dropdown_categories( $dropdown_options ); |
461 | 461 | } |
462 | 462 | } |
diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index a0562578c6..2316294caf 100644
a
|
b
|
function get_post_type_labels( $post_type_object ) { |
1730 | 1730 | 'filter_items_list' => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ), |
1731 | 1731 | 'items_list_navigation' => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ), |
1732 | 1732 | 'items_list' => array( __( 'Posts list' ), __( 'Pages list' ) ), |
| 1733 | 'filter_by_category' => array( _x( 'Filter by category', 'post' ), _x( 'Filter by category', 'page' ) ), |
| 1734 | 'filter_by_date' => array( _x( 'Filter by date', 'post' ), _x( 'Filter by date', 'page' ) ), |
1733 | 1735 | 'item_published' => array( __( 'Post published.' ), __( 'Page published.' ) ), |
1734 | 1736 | 'item_published_privately' => array( __( 'Post published privately.' ), __( 'Page published privately.' ) ), |
1735 | 1737 | 'item_reverted_to_draft' => array( __( 'Post reverted to draft.' ), __( 'Page reverted to draft.' ) ), |
diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index 5055b612c6..2597c84194 100644
a
|
b
|
function create_initial_taxonomies() { |
140 | 140 | 'add_or_remove_items' => null, |
141 | 141 | 'choose_from_most_used' => null, |
142 | 142 | 'back_to_items' => __( '← Go to Link Categories' ), |
| 143 | 'filter_by_category' => __( 'Filter by category' ), |
143 | 144 | ), |
144 | 145 | 'capabilities' => array( |
145 | 146 | 'manage_terms' => 'manage_links', |
diff --git a/tests/phpunit/tests/xmlrpc/wp/getPostType.php b/tests/phpunit/tests/xmlrpc/wp/getPostType.php
index cfff2320fc..0cded77eef 100644
a
|
b
|
class Tests_XMLRPC_wp_getPostType extends WP_XMLRPC_UnitTestCase { |
95 | 95 | $this->assertInternalType( 'string', $result['labels']['all_items'] ); |
96 | 96 | $this->assertInternalType( 'string', $result['labels']['menu_name'] ); |
97 | 97 | $this->assertInternalType( 'string', $result['labels']['name_admin_bar'] ); |
| 98 | $this->assertInternalType( 'string', $result['labels']['filter_by_category'] ); |
| 99 | $this->assertInternalType( 'string', $result['labels']['filter_by_date'] ); |
98 | 100 | |
99 | 101 | // Check cap data types. |
100 | 102 | $this->assertInternalType( 'string', $result['cap']['edit_post'] ); |