Make WordPress Core

Changeset 34077


Ignore:
Timestamp:
09/12/2015 08:18:18 AM (10 years ago)
Author:
wonderboymusic
Message:

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

See #21015.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r34076 r34077  
    533533            $extra_checks .= " AND post_status != 'trash'";
    534534        } elseif ( isset( $_GET['post_status'] ) ) {
    535             $stati = explode( ',', $_GET['post_status'] );
    536             $extra_checks = '';
    537             foreach ( $stati as $status ) {
    538                 $extra_checks .= $wpdb->prepare( ' AND post_status = %s', $status );
    539             }
     535            $extra_checks = $wpdb->prepare( ' AND post_status = %s', $_GET['post_status'] );
    540536        }
    541537
Note: See TracChangeset for help on using the changeset viewer.