WordPress.org

Make WordPress Core

Ticket #17556: 17556.diff

File 17556.diff, 657 bytes (added by nacin, 4 years ago)

Do this for 3.1.4.

  • wp-admin/includes/post.php

     
    10011001        if ( current_user_can( $post_type->cap->read_private_posts ) ) 
    10021002                $states[] = 'private'; 
    10031003 
    1004         $q['post_status'] = isset( $q['status'] ) && 'trash' == $q['status'] ? 'trash' : $states; 
     1004        $q['post_status'] = isset( $q['status'] ) && 'trash' == $q['status'] ? 'trash' : implode( ',', $states ); 
    10051005        $media_per_page = (int) get_user_option( 'upload_per_page' ); 
    10061006        if ( empty( $media_per_page ) || $media_per_page < 1 ) 
    10071007                $media_per_page = 20;