Ticket #30254: 30254.4.patch
File 30254.4.patch, 921 bytes (added by , 10 years ago) |
---|
-
wp-admin/includes/class-wp-list-table.php
481 481 * @access protected 482 482 */ 483 483 protected function months_dropdown( $post_type ) { 484 /** 485 * Filter whether to remove the 'Months' drop-down from the post list table. 486 * 487 * @since 488 * 489 * @param bool $hide_months_dropdown The default to include the dropdown. 490 * @param string $post_type Optional. The post type to target screen for specific post type. 491 * @return bool True to hide the dropdown, false to display. 492 */ 493 if ( true === apply_filters( 'hide_months_dropdown', false, $post_type ) ) { 494 return; 495 } 496 484 497 global $wpdb, $wp_locale; 485 498 486 499 $months = $wpdb->get_results( $wpdb->prepare( "