mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Add read_post meta cap.
git-svn-id: https://develop.svn.wordpress.org/trunk@3297 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -643,8 +643,8 @@ class WP_Query {
|
||||
} else {
|
||||
$this->is_preview = true;
|
||||
}
|
||||
} elseif ('private' == $status) {
|
||||
if ($this->posts[0]->post_author != $user_ID)
|
||||
} else {
|
||||
if (! current_user_can('read_post', $this->posts[0]->ID))
|
||||
$this->posts = array();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user