Add option to check caps when querying a particular post status. fixes #6052

git-svn-id: https://develop.svn.wordpress.org/trunk@7109 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-02-29 21:49:49 +00:00
parent a41de28d25
commit 71f274c599
5 changed files with 37 additions and 8 deletions
+3 -1
View File
@@ -513,8 +513,10 @@ function wp_edit_posts_query( $q = false ) {
$avail_post_stati = get_available_post_statuses('post');
$post_status_q = '';
if ( isset($q['post_status']) && in_array( $q['post_status'], array_keys($post_stati) ) )
if ( isset($q['post_status']) && in_array( $q['post_status'], array_keys($post_stati) ) ) {
$post_status_q = '&post_status=' . $q['post_status'];
$post_status_q .= '&perm=readable';
}
if ( 'pending' === $q['post_status'] ) {
$order = 'ASC';