Ticket #17022: months_dropdown_3.2.patch
File months_dropdown_3.2.patch, 745 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/class-wp-list-table.php
345 345 function months_dropdown( $post_type ) { 346 346 global $wpdb, $wp_locale; 347 347 348 $months = $wpdb->get_results( $wpdb->prepare( "348 $months = $wpdb->get_results( apply_filters( 'months_dropdown_query', $wpdb->prepare( " 349 349 SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month 350 350 FROM $wpdb->posts 351 351 WHERE post_type = %s 352 352 ORDER BY post_date DESC 353 ", $post_type ) );353 ", $post_type ), $post_type ) ); 354 354 355 355 $month_count = count( $months ); 356 356