From 172de9ed6dd432b8e9b5b76723b876063a995df5 Mon Sep 17 00:00:00 2001 From: rob1n Date: Fri, 6 Apr 2007 03:33:21 +0000 Subject: [PATCH] Add private posts to Recent Posts for those who can read them. Props molecularbear. fixes #3877 git-svn-id: https://develop.svn.wordpress.org/trunk@5191 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/index.php b/wp-admin/index.php index 7dc34a9a15..7e70aece5b 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -61,7 +61,7 @@ foreach ($comments as $comment) { get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5") ) : +if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND " . get_private_posts_cap_sql('post') . " AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 5") ) : ?>

»