Make WordPress Core


Ignore:
Timestamp:
04/28/2022 09:44:12 AM (3 years ago)
Author:
johnbillion
Message:

Docs: Various docblock improvements.

See #54729

File:
1 edited

Legend:

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

    r53265 r53299  
    157157 * @param int   $post_id The ID of the post.
    158158 * @param array $args    Optional. See WP_Comment_Query::__construct() for information on accepted arguments.
    159  * @return int|array The approved comments, or number of comments if `$count`
    160  *                   argument is true.
     159 * @return WP_Comment[]|int[]|int The approved comments, or number of comments if `$count`
     160 *                                argument is true.
    161161 */
    162162function get_approved_comments( $post_id, $args = array() ) {
     
    238238 * @param string|array $args Optional. Array or string of arguments. See WP_Comment_Query::__construct()
    239239 *                           for information on accepted arguments. Default empty.
    240  * @return int|array List of comments or number of found comments if `$count` argument is true.
     240 * @return WP_Comment[]|int[]|int List of comments or number of found comments if `$count` argument is true.
    241241 */
    242242function get_comments( $args = '' ) {
Note: See TracChangeset for help on using the changeset viewer.