From 281faeb69d7499c88880639ec51e08373c239178 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 12 Sep 2015 08:19:24 +0000 Subject: [PATCH] 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 --- wp-admin/includes/class-wp-list-table.php | 6 +----- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index 850aab94e4..68e1780762 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -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( " diff --git a/wp-includes/version.php b/wp-includes/version.php index 077695f03e..3a377c73e2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.