Make WordPress Core

Changeset 25556


Ignore:
Timestamp:
09/21/2013 06:34:26 PM (11 years ago)
Author:
DrewAPicture
Message:

Make the WP_List_Table::months_dropdown() query results filterable.

Introduces the months_dropdown_results filter.

Fixes #17022.

File:
1 edited

Legend:

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

    r25509 r25556  
    368368        ", $post_type ) );
    369369
     370        /**
     371         * Filter the months dropdown results.
     372         *
     373         * @since 3.7.0
     374         *
     375         * @param object $months    The months dropdown query results.
     376         * @param string $post_type The post type.
     377         */
     378        $months = apply_filters( 'months_dropdown_results', $months, $post_type );
     379
    370380        $month_count = count( $months );
    371381
Note: See TracChangeset for help on using the changeset viewer.