WordPress.org

Make WordPress Core

Changeset 13118


Ignore:
Timestamp:
02/13/2010 07:05:10 PM (12 years ago)
Author:
ryan
Message:

Add trash to edit cap check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r13089 r13118  
    23032303                    $this->posts = array();
    23042304                } else {
    2305                     if  (in_array($status, array('draft', 'pending')) ) {
     2305                    if  (in_array($status, array('draft', 'pending', 'trash')) ) {
    23062306                        // User must have edit permissions on the draft to preview.
    23072307                        if (! current_user_can("edit_$post_type_cap", $this->posts[0]->ID)) {
Note: See TracChangeset for help on using the changeset viewer.