diff --git wp-admin/includes/class-wp-list-table.php wp-admin/includes/class-wp-list-table.php
index 22c35f5..ae66809 100644
|
|
class WP_List_Table { |
360 | 360 | function months_dropdown( $post_type ) { |
361 | 361 | global $wpdb, $wp_locale; |
362 | 362 | |
363 | | $months = $wpdb->get_results( $wpdb->prepare( " |
| 363 | $sql = $wpdb->prepare( " |
364 | 364 | SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month |
365 | 365 | FROM $wpdb->posts |
366 | 366 | WHERE post_type = %s |
367 | 367 | ORDER BY post_date DESC |
368 | | ", $post_type ) ); |
| 368 | ", $post_type ); |
369 | 369 | |
| 370 | $months = $wpdb->get_results( apply_filters( 'months_dropdown_query', $sql, $post_type ) ); |
370 | 371 | $month_count = count( $months ); |
371 | 372 | |
372 | 373 | if ( !$month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) |