Make WordPress Core


Ignore:
Timestamp:
11/24/2020 09:25:46 PM (3 years ago)
Author:
johnbillion
Message:

Docs: Upgrade more parameters in docblocks to used typed array notation.

See #51800, #41756

File:
1 edited

Legend:

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

    r49355 r49693  
    423423 * @since 4.4.0 Added the ability for `$comment` to also accept a WP_Comment object.
    424424 *
    425  * @param string|array  $class    Optional. One or more classes to add to the class list.
    426  *                                 Default empty.
    427  * @param int|WP_Comment $comment  Comment ID or WP_Comment object. Default current comment.
    428  * @param int|WP_Post    $post_id  Post ID or WP_Post object. Default current post.
    429  * @param bool           $echo     Optional. Whether to echo or return the output.
    430  *                                 Default true.
     425 * @param string|string[] $class    Optional. One or more classes to add to the class list.
     426 *                                  Default empty.
     427 * @param int|WP_Comment  $comment  Comment ID or WP_Comment object. Default current comment.
     428 * @param int|WP_Post     $post_id  Post ID or WP_Post object. Default current post.
     429 * @param bool            $echo     Optional. Whether to echo or return the output.
     430 *                                  Default true.
    431431 * @return void|string Void if `$echo` argument is true, comment classes if `$echo` is false.
    432432 */
     
    452452 * @global int $comment_thread_alt
    453453 *
    454  * @param string|array  $class      Optional. One or more classes to add to the class list. Default empty.
    455  * @param int|WP_Comment $comment_id Comment ID or WP_Comment object. Default current comment.
    456  * @param int|WP_Post    $post_id    Post ID or WP_Post object. Default current post.
     454 * @param string|string[] $class      Optional. One or more classes to add to the class list. Default empty.
     455 * @param int|WP_Comment  $comment_id Comment ID or WP_Comment object. Default current comment.
     456 * @param int|WP_Post     $post_id    Post ID or WP_Post object. Default current post.
    457457 * @return string[] An array of classes.
    458458 */
     
    531531     *
    532532     * @param string[]    $classes    An array of comment classes.
    533      * @param string      $class      A comma-separated list of additional classes added to the list.
     533     * @param string[]    $class      An array of additional classes added to the list.
    534534     * @param int         $comment_id The comment ID.
    535535     * @param WP_Comment  $comment    The comment object.
Note: See TracChangeset for help on using the changeset viewer.