Make WordPress Core


Ignore:
Timestamp:
03/25/2018 06:09:56 PM (7 years ago)
Author:
johnbillion
Message:

Docs: Document more parameters and properties using typed array notation.

See #41756

File:
1 edited

Legend:

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

    r42832 r42875  
    8080         * @since 3.1.0
    8181         *
    82          * @param array $dashboard_widgets An array of dashboard widgets.
     82         * @param string[] $dashboard_widgets An array of dashboard widget IDs.
    8383         */
    8484        $dashboard_widgets = apply_filters( 'wp_network_dashboard_widgets', array() );
     
    9797         * @since 3.1.0
    9898         *
    99          * @param array $dashboard_widgets An array of dashboard widgets.
     99         * @param string[] $dashboard_widgets An array of dashboard widget IDs.
    100100         */
    101101        $dashboard_widgets = apply_filters( 'wp_user_dashboard_widgets', array() );
     
    114114         * @since 2.5.0
    115115         *
    116          * @param array $dashboard_widgets An array of dashboard widgets.
     116         * @param string[] $dashboard_widgets An array of dashboard widget IDs.
    117117         */
    118118        $dashboard_widgets = apply_filters( 'wp_dashboard_widgets', array() );
     
    315315     * @since 3.8.0
    316316     *
    317      * @param array $items Array of extra 'At a Glance' widget items.
     317     * @param string[] $items Array of extra 'At a Glance' widget items.
    318318     */
    319319    $elements = apply_filters( 'dashboard_glance_items', array() );
     
    556556 * @since 2.7.0
    557557 *
    558  * @param array $drafts
     558 * @param WP_Post[] $drafts Optional. Array of posts to display. Default false.
    559559 */
    560560function wp_dashboard_recent_drafts( $drafts = false ) {
     
    672672         * @since 2.6.0
    673673         *
    674          * @param array      $actions An array of comment actions. Default actions include:
     674         * @param string[]   $actions An array of comment actions. Default actions include:
    675675         *                            'Approve', 'Unapprove', 'Edit', 'Reply', 'Spam',
    676676         *                            'Delete', and 'Trash'.
Note: See TracChangeset for help on using the changeset viewer.