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
This commit is contained in:
Sergey Biryukov 2015-08-31 21:57:21 +00:00
parent a53d6b471f
commit 43194cea1c
2 changed files with 10 additions and 2 deletions

View File

@ -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,

View File

@ -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.