From e99d544215fd3a17893619e84e5ab50498529f2c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 16 Feb 2021 19:58:05 +0000 Subject: [PATCH] Administration: Apply the `months_dropdown_results` filter separately from `pre_months_dropdown_query`. Follow-up to [50163]. Props hellofromTonya. Fixes #51660. Built from https://develop.svn.wordpress.org/trunk@50362 git-svn-id: http://core.svn.wordpress.org/trunk@49973 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-list-table.php | 20 ++++++++++---------- wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index cdd07f076d..3faf5d46e0 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -625,18 +625,18 @@ class WP_List_Table { $post_type ) ); - - /** - * Filters the 'Months' drop-down results. - * - * @since 3.7.0 - * - * @param object[] $months Array of the months drop-down query results. - * @param string $post_type The post type. - */ - $months = apply_filters( 'months_dropdown_results', $months, $post_type ); } + /** + * Filters the 'Months' drop-down results. + * + * @since 3.7.0 + * + * @param object[] $months Array of the months drop-down query results. + * @param string $post_type The post type. + */ + $months = apply_filters( 'months_dropdown_results', $months, $post_type ); + $month_count = count( $months ); if ( ! $month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index e816b4f21b..c882431e60 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-beta2-50361'; +$wp_version = '5.7-beta2-50362'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.