From 1efba040415413f13da5937b88d75dca0249933d 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: http://svn.automattic.com/wordpress/trunk@5191 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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") ) : ?>

»