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") ) : ?>

»