From 2746f4287b2aa9eaf33092c2783de8ff8e6b9170 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 29 Feb 2008 22:34:29 +0000 Subject: [PATCH] Add option to check caps when querying a particular page status. fixes #6052 git-svn-id: https://develop.svn.wordpress.org/trunk@7112 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-pages.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index 8657a13d18..3ee71ba533 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -51,6 +51,7 @@ $post_status_q = ''; if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) { $post_status_label = $post_stati[$_GET['post_status']][1]; $post_status_q = '&post_status=' . $_GET['post_status']; + $post_status_q .= '&perm=readable'; } ?> @@ -73,7 +74,7 @@ printf( _c( '%1$s%2$s%3$s|You can reorder these: 1: Pages, 2: by {s}, 3: matchin $avail_post_stati = get_available_post_statuses('page'); $status_links = array(); -$num_posts = wp_count_posts('page'); +$num_posts = wp_count_posts('page', 'readable'); foreach ( $post_stati as $status => $label ) { $class = '';