Make WordPress Core

Changeset 50362


Ignore:
Timestamp:
02/16/2021 07:56:13 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Administration: Apply the months_dropdown_results filter separately from pre_months_dropdown_query.

Follow-up to [50163].

Props hellofromTonya.
Fixes #51660.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r50163 r50362  
    626626                )
    627627            );
    628 
    629             /**
    630              * Filters the 'Months' drop-down results.
    631              *
    632              * @since 3.7.0
    633              *
    634              * @param object[] $months    Array of the months drop-down query results.
    635              * @param string   $post_type The post type.
    636              */
    637             $months = apply_filters( 'months_dropdown_results', $months, $post_type );
    638         }
     628        }
     629
     630        /**
     631         * Filters the 'Months' drop-down results.
     632         *
     633         * @since 3.7.0
     634         *
     635         * @param object[] $months    Array of the months drop-down query results.
     636         * @param string   $post_type The post type.
     637         */
     638        $months = apply_filters( 'months_dropdown_results', $months, $post_type );
    639639
    640640        $month_count = count( $months );
Note: See TracChangeset for help on using the changeset viewer.