Make WordPress Core

Ticket #30254: 30254.5.patch

File 30254.5.patch, 875 bytes (added by norcross, 10 years ago)

even BETTER DocBlocks. who doesn't like a good DocBlock, am I right?

  • wp-admin/includes/class-wp-list-table.php

     
    481481         * @access protected
    482482         */
    483483        protected function months_dropdown( $post_type ) {
     484                /**
     485                 * Filter whether to remove the 'Months' drop-down from the post list table.
     486                 *
     487                 * @since 4.2.0
     488        *
     489                 * @param bool   $hide_months_dropdown The default to include the dropdown. True to hide the dropdown, false to display.
     490                 * @param string $post_type            The post type to target screen for specific post type.
     491                 */
     492                if ( true === apply_filters( 'hide_months_dropdown', false, $post_type ) ) {
     493                        return;
     494                }
     495
    484496                global $wpdb, $wp_locale;
    485497
    486498                $months = $wpdb->get_results( $wpdb->prepare( "