From 797b7e1fe2a602a84fc832339ff460e958bcf3e1 Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Fri, 9 Oct 2020 16:05:37 +0000 Subject: [PATCH] Dashboard: Show `2` w.org news items to preserve clustered posts. These days there are often 2 posts published close to each other, like a release announcement and a Month In WordPress post. When that happens, the earlier post is often pushed out of the widget before many people have had a chance to see it. Ideally, the number of total items would remain at `4`, to reduce visual clutter. Implementing a conditional item would require a significant refactor, though. Increasing the total number of items to `5` is a practical compromise. Props hlashbrooke, tellyworth. Fixes #43441. git-svn-id: https://develop.svn.wordpress.org/trunk@49114 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index c9caa0892f..7ed08b8119 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -1450,7 +1450,7 @@ function wp_dashboard_primary() { * @param string $title Title attribute for the widget's primary link. */ 'title' => apply_filters( 'dashboard_primary_title', __( 'WordPress Blog' ) ), - 'items' => 1, + 'items' => 2, 'show_summary' => 0, 'show_author' => 0, 'show_date' => 0,