mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Administration: Apply the months_dropdown_results filter separately from pre_months_dropdown_query.
Follow-up to [50163]. Props hellofromTonya. Fixes #51660. git-svn-id: https://develop.svn.wordpress.org/trunk@50362 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0ff408d563
commit
729873ddda
@ -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 ) ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user