Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.9/wp-includes/query.php

    r12409 r13117  
    22812281                    $this->posts = array();
    22822282                } else {
    2283                     if  (in_array($status, array('draft', 'pending')) ) {
     2283                    if  (in_array($status, array('draft', 'pending', 'trash')) ) {
    22842284                        // User must have edit permissions on the draft to preview.
    22852285                        if (! current_user_can("edit_$post_type_cap", $this->posts[0]->ID)) {
Note: See TracChangeset for help on using the changeset viewer.