Make WordPress Core


Ignore:
Timestamp:
01/05/2021 05:14:24 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Corrections and improvements to types used in various docblocks.

See #51800, #52217

File:
1 edited

Legend:

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

    r49384 r49936  
    2626 * @see wp_terms_checklist()
    2727 *
    28  * @param int    $post_id              Optional. Post to generate a categories checklist for. Default 0.
    29  *                                     $selected_cats must not be an array. Default 0.
    30  * @param int    $descendants_and_self Optional. ID of the category to output along with its descendants.
    31  *                                     Default 0.
    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.
    34  *                                     Default false.
    35  * @param Walker $walker               Optional. Walker object to use to build the output.
    36  *                                     Default is a Walker_Category_Checklist instance.
    37  * @param bool   $checked_ontop        Optional. Whether to move checked items out of the hierarchy and to
    38  *                                     the top of the list. Default true.
     28 * @param int         $post_id              Optional. Post to generate a categories checklist for. Default 0.
     29 *                                          $selected_cats must not be an array. Default 0.
     30 * @param int         $descendants_and_self Optional. ID of the category to output along with its descendants.
     31 *                                          Default 0.
     32 * @param int[]|false $selected_cats        Optional. Array of category IDs to mark as checked. Default false.
     33 * @param int[]|false $popular_cats         Optional. Array of category IDs to receive the "popular-category" class.
     34 *                                          Default false.
     35 * @param Walker      $walker               Optional. Walker object to use to build the output.
     36 *                                          Default is a Walker_Category_Checklist instance.
     37 * @param bool        $checked_ontop        Optional. Whether to move checked items out of the hierarchy and to
     38 *                                          the top of the list. Default true.
    3939 */
    4040function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false, $walker = null, $checked_ontop = true ) {
Note: See TracChangeset for help on using the changeset viewer.