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:
parent
eb230b5424
commit
281faeb69d
|
@ -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( "
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue