Make WordPress Core

Changeset 13117


Ignore:
Timestamp:
02/13/2010 07:04:27 PM (17 years ago)
Author:
ryan
Message:

Add trash to edit cap check.

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.