Make WordPress Core

Changeset 41940


Ignore:
Timestamp:
10/19/2017 08:48:05 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Reference WP_Comment_Query::__construct() as the source of information on accepted arguments in get_comments() and get_approved_comments().

See #41017.

File:
1 edited

Legend:

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

    r41848 r41940  
    139139 *
    140140 * @param  int   $post_id The ID of the post.
    141  * @param  array $args    Optional. See WP_Comment_Query::query() for information on accepted arguments.
     141 * @param  array $args    Optional. See WP_Comment_Query::__construct() for information on accepted arguments.
    142142 * @return int|array $comments The approved comments, or number of comments if `$count`
    143143 *                             argument is true.
     
    218218 * @since 2.7.0
    219219 *
    220  * @param string|array $args Optional. Array or string of arguments. See WP_Comment_Query::parse_query()
     220 * @param string|array $args Optional. Array or string of arguments. See WP_Comment_Query::__construct()
    221221 *                           for information on accepted arguments. Default empty.
    222222 * @return int|array List of comments or number of found comments if `$count` argument is true.
Note: See TracChangeset for help on using the changeset viewer.