]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/query.php
Wordpress 2.9.2-scripts
[autoinstalls/wordpress.git] / wp-includes / query.php
index 88440cba9f7ef469db6865de2c43b12be94a0228..92da5a4f03457d4abde5ee8e1318573484776308 100644 (file)
@@ -2280,7 +2280,7 @@ class WP_Query {
                                        // User must be logged in to view unpublished posts.
                                        $this->posts = array();
                                } else {
-                                       if  (in_array($status, array('draft', 'pending')) ) {
+                                       if  (in_array($status, array('draft', 'pending', 'trash')) ) {
                                                // User must have edit permissions on the draft to preview.
                                                if (! current_user_can("edit_$post_type_cap", $this->posts[0]->ID)) {
                                                        $this->posts = array();