Permalink
Browse files

Add trash to edit cap check.

git-svn-id: http://svn.automattic.com/wordpress/branches/2.9@13117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 4cf8bb8 commit 23d63e32d89f81d97e27fa80a74577c1f67db6a1 ryan committed Feb 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-includes/query.php
View
@@ -2280,7 +2280,7 @@ function &get_posts() {
// 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();

0 comments on commit 23d63e3

Please sign in to comment.