From 43194cea1cbaa2806756d70b0f982f4e2d14fbf6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 31 Aug 2015 21:57:21 +0000 Subject: [PATCH] Add `'dashboard_secondary_items'` filter for the number of secondary link items in the 'WordPress News' dashboard widget. props MikeHansenMe, DrewAPicture. fixes #31434. Built from https://develop.svn.wordpress.org/trunk@33833 git-svn-id: http://core.svn.wordpress.org/trunk@33801 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 10 +++++++++- wp-includes/version.php | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 9c7ac5b8ab..cab0cc223d 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -1036,7 +1036,15 @@ function wp_dashboard_primary() { * @param string $title Title attribute for the widget's secondary link. */ 'title' => apply_filters( 'dashboard_secondary_title', __( 'Other WordPress News' ) ), - 'items' => 3, + + /** + * Filter the number of secondary link items for the 'WordPress News' dashboard widget. + * + * @since 4.4.0 + * + * @param string $items How many items to show in the secondary feed. + */ + 'items' => apply_filters( 'dashboard_secondary_items', 3 ), 'show_summary' => 0, 'show_author' => 0, 'show_date' => 0, diff --git a/wp-includes/version.php b/wp-includes/version.php index caafa68d1d..1ce0f04d4b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-33832'; +$wp_version = '4.4-alpha-33833'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.