mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 18:08:09 +01:00
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
This commit is contained in:
parent
070dcd980b
commit
e99d544215
@ -625,18 +625,18 @@ class WP_List_Table {
|
|||||||
$post_type
|
$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 );
|
$month_count = count( $months );
|
||||||
|
|
||||||
if ( ! $month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) {
|
if ( ! $month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user