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/template.php

    r42827 r42875  
    3030 * @param int    $descendants_and_self Optional. ID of the category to output along with its descendants.
    3131 *                                     Default 0.
    32  * @param array  $selected_cats        Optional. List of categories to mark as checked. Default false.
    33  * @param array  $popular_cats         Optional. List of categories to receive the "popular-category" class.
     32 * @param int[]  $selected_cats        Optional. Array of category IDs to mark as checked. Default false.
     33 * @param int[]  $popular_cats         Optional. Array of category IDs to receive the "popular-category" class.
    3434 *                                     Default false.
    3535 * @param object $walker               Optional. Walker object to use to build the output.
     
    6565 *     @type int    $descendants_and_self ID of the category to output along with its descendants.
    6666 *                                        Default 0.
    67  *     @type array  $selected_cats        List of categories to mark as checked. Default false.
    68  *     @type array  $popular_cats         List of categories to receive the "popular-category" class.
     67 *     @type int[]  $selected_cats        Array of category IDs to mark as checked. Default false.
     68 *     @type int[]  $popular_cats         Array of category IDs to receive the "popular-category" class.
    6969 *                                        Default false.
    7070 *     @type object $walker               Walker object to use to build the output.
     
    18981898     * @since 3.6.0 Added the `$post` parameter.
    18991899     *
    1900      * @param array  $post_states An array of post display states.
    1901      * @param WP_Post $post        The current post object.
     1900     * @param string[] $post_states An array of post display states.
     1901     * @param WP_Post  $post        The current post object.
    19021902     */
    19031903    $post_states = apply_filters( 'display_post_states', $post_states, $post );
     
    19741974     * @since 4.8.0 Added the `$post` parameter.
    19751975     *
    1976      * @param array  $media_states An array of media states. Default 'Header Image',
    1977      *                              'Background Image', 'Site Icon', 'Logo'.
    1978      * @param WP_Post $post         The current attachment object.
     1976     * @param string[] $media_states An array of media states. Default 'Header Image',
     1977     *                               'Background Image', 'Site Icon', 'Logo'.
     1978     * @param WP_Post  $post         The current attachment object.
    19791979     */
    19801980    $media_states = apply_filters( 'display_media_states', $media_states, $post );
Note: See TracChangeset for help on using the changeset viewer.