WordPress.org

Make WordPress Core

Ticket #13755: 13755.diff

File 13755.diff, 547 bytes (added by ryan, 5 years ago)
  • wp-admin/includes/post.php

     
    874874 
    875875        $avail_post_stati = get_available_post_statuses($post_type); 
    876876 
    877         if ( isset($q['post_status']) && in_array( $q['post_status'], $post_stati ) ) { 
     877        if ( isset($q['post_status']) && ( ('any' == $q['post_status']) || in_array( $q['post_status'], $post_stati ) ) ) { 
    878878                $post_status = $q['post_status']; 
    879879                $perm = 'readable'; 
    880880        }