Make WordPress Core


Ignore:
Timestamp:
10/17/2020 04:03:58 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Fix and upgrade various object docblock notations.

See #50768

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-walker-category.php

    r47808 r49183  
    9090     * @see Walker::start_el()
    9191     *
    92      * @param string $output   Used to append additional content (passed by reference).
    93      * @param object $category Category data object.
    94      * @param int    $depth    Optional. Depth of category in reference to parents. Default 0.
    95      * @param array  $args     Optional. An array of arguments. See wp_list_categories(). Default empty array.
    96      * @param int    $id       Optional. ID of the current category. Default 0.
     92     * @param string  $output   Used to append additional content (passed by reference).
     93     * @param WP_Term $category Category data object.
     94     * @param int     $depth    Optional. Depth of category in reference to parents. Default 0.
     95     * @param array   $args     Optional. An array of arguments. See wp_list_categories(). Default empty array.
     96     * @param int     $id       Optional. ID of the current category. Default 0.
    9797     */
    9898    public function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
     
    114114             * @since 1.2.0
    115115             *
    116              * @param string $description Category description.
    117              * @param object $category    Category object.
     116             * @param string  $description Category description.
     117             * @param WP_Term $category    Category object.
    118118             */
    119119            $atts['title'] = strip_tags( apply_filters( 'category_description', $category->description, $category ) );
     
    228228             * @see wp_list_categories()
    229229             *
    230              * @param array $css_classes An array of CSS classes to be applied to each list item.
    231              * @param object $category    Category data object.
    232              * @param int    $depth       Depth of page, used for padding.
    233              * @param array  $args        An array of wp_list_categories() arguments.
     230             * @param string[] $css_classes An array of CSS classes to be applied to each list item.
     231             * @param WP_Term $category    Category data object.
     232             * @param int      $depth       Depth of page, used for padding.
     233             * @param array    $args        An array of wp_list_categories() arguments.
    234234             */
    235235            $css_classes = implode( ' ', apply_filters( 'category_css_class', $css_classes, $category, $depth, $args ) );
Note: See TracChangeset for help on using the changeset viewer.