After [34076], fix the logic for `post_status` in months dropdown.

See #21015.

Built from https://develop.svn.wordpress.org/trunk@34077


git-svn-id: http://core.svn.wordpress.org/trunk@34045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-09-12 08:19:24 +00:00
parent eb230b5424
commit 281faeb69d
2 changed files with 2 additions and 6 deletions

View File

@ -532,11 +532,7 @@ class WP_List_Table {
if ( ! isset( $_GET['post_status'] ) || 'trash' !== $_GET['post_status'] ) {
$extra_checks .= " AND post_status != 'trash'";
} elseif ( isset( $_GET['post_status'] ) ) {
$stati = explode( ',', $_GET['post_status'] );
$extra_checks = '';
foreach ( $stati as $status ) {
$extra_checks .= $wpdb->prepare( ' AND post_status = %s', $status );
}
$extra_checks = $wpdb->prepare( ' AND post_status = %s', $_GET['post_status'] );
}
$months = $wpdb->get_results( $wpdb->prepare( "

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34076';
$wp_version = '4.4-alpha-34077';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.