mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 07:07:04 +00:00
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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user