diff --git "a/src/wp-admin/export.php" "b/src/wp-admin/export.php"
index 6e4c335190..7c59c9e6c0 100644
"a
|
"b
|
function export_date_options( $post_type = 'post' ) { |
141 | 141 | |
142 | 142 | $months = $wpdb->get_results( |
143 | 143 | $wpdb->prepare( |
144 | | " |
145 | | SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month |
146 | | FROM $wpdb->posts |
147 | | WHERE post_type = %s AND post_status != 'auto-draft' |
148 | | ORDER BY post_date DESC |
149 | | ", |
| 144 | "SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month |
| 145 | FROM $wpdb->posts |
| 146 | WHERE post_type = %s AND post_status != 'auto-draft' |
| 147 | ORDER BY post_date DESC", |
150 | 148 | $post_type |
151 | 149 | ) |
152 | 150 | ); |