From 61b7831f56344fb2b7038d863bdfbe3bf30d72e2 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 6 Dec 2013 20:13:11 +0000 Subject: [PATCH] Dashboard: Restore a line that vanished from my editor to print recently published posts. Also fix an off-by-one error. see [26704]. see #26066. Built from https://develop.svn.wordpress.org/trunk@26741 git-svn-id: http://core.svn.wordpress.org/trunk@26630 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 773ec5f8fa..e3a0705738 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -606,7 +606,8 @@ function wp_dashboard_recent_posts( $args ) { _draft_or_post_title() ); - $hidden = $i > $args['display'] ? ' class="hidden"' : ''; + $hidden = $i >= $args['display'] ? ' class="hidden"' : ''; + echo "$text"; $i++; }