Changeset 31438 for trunk/src/wp-admin/includes/class-wp-list-table.php
- Timestamp:
- 02/12/2015 06:37:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-list-table.php
r31220 r31438 510 510 global $wpdb, $wp_locale; 511 511 512 /** 513 * Filter whether to remove the 'Months' drop-down from the post list table. 514 * 515 * @since 4.2.0 516 * 517 * @param bool $disable Whether to disable the drop-down. Default false. 518 * @param string $post_type The post type. 519 */ 520 if ( apply_filters( 'disable_months_dropdown', false, $post_type ) ) { 521 return; 522 } 523 512 524 $months = $wpdb->get_results( $wpdb->prepare( " 513 525 SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
Note: See TracChangeset
for help on using the changeset viewer.