WordPress.org

Make WordPress Core

Changeset 33833


Ignore:
Timestamp:
08/31/2015 09:56:50 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Add 'dashboard_secondary_items' filter for the number of secondary link items in the 'WordPress News' dashboard widget.

props MikeHansenMe, DrewAPicture.
fixes #31434.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r33734 r33833  
    10371037             */
    10381038            'title'        => apply_filters( 'dashboard_secondary_title', __( 'Other WordPress News' ) ),
    1039             'items'        => 3,
     1039
     1040            /**
     1041             * Filter the number of secondary link items for the 'WordPress News' dashboard widget.
     1042             *
     1043             * @since 4.4.0
     1044             *
     1045             * @param string $items How many items to show in the secondary feed.
     1046             */
     1047            'items'        => apply_filters( 'dashboard_secondary_items', 3 ),
    10401048            'show_summary' => 0,
    10411049            'show_author'  => 0,
Note: See TracChangeset for help on using the changeset viewer.