From 81462ca73e065a1fa944ff159033d0a7a2f8f4ba Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 1 Feb 2021 14:13:00 +0000 Subject: [PATCH] Posts, Post Types: Introduce "Filter by date" and "Filter by category" as post type and taxonomy labels, respectively. This provides a more consistent location for these strings and allows for reusing them in other places without hardcoding them in the markup. Props nicolalaserra, audrasjb, johnjamesjacoby, SergeyBiryukov. Fixes #42421. Built from https://develop.svn.wordpress.org/trunk@50120 git-svn-id: http://core.svn.wordpress.org/trunk@49799 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-links-list-table.php | 2 +- wp-admin/includes/class-wp-list-table.php | 2 +- wp-admin/includes/class-wp-posts-list-table.php | 3 ++- wp-includes/post.php | 3 +++ wp-includes/taxonomy.php | 4 ++++ wp-includes/version.php | 2 +- 6 files changed, 12 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/class-wp-links-list-table.php b/wp-admin/includes/class-wp-links-list-table.php index 4ac93bc274..b867a8ad19 100644 --- a/wp-admin/includes/class-wp-links-list-table.php +++ b/wp-admin/includes/class-wp-links-list-table.php @@ -114,7 +114,7 @@ class WP_Links_List_Table extends WP_List_Table { 'orderby' => 'name', ); - echo ''; + echo ''; wp_dropdown_categories( $dropdown_options ); diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index 5797bbcc1a..e2b306e38f 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -633,7 +633,7 @@ class WP_List_Table { $m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0; ?> - +