From 731d7643d2843a45e36562fef22ad1d3cfc46e0e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 19 Oct 2017 08:48:05 +0000 Subject: [PATCH] Docs: Reference `WP_Comment_Query::__construct()` as the source of information on accepted arguments in `get_comments()` and `get_approved_comments()`. See #41017. git-svn-id: https://develop.svn.wordpress.org/trunk@41940 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index 9054e1acee..eae3a80731 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -138,7 +138,7 @@ function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $ * @since 4.1.0 Refactored to leverage WP_Comment_Query over a direct query. * * @param int $post_id The ID of the post. - * @param array $args Optional. See WP_Comment_Query::query() for information on accepted arguments. + * @param array $args Optional. See WP_Comment_Query::__construct() for information on accepted arguments. * @return int|array $comments The approved comments, or number of comments if `$count` * argument is true. */ @@ -217,7 +217,7 @@ function get_comment( &$comment = null, $output = OBJECT ) { * * @since 2.7.0 * - * @param string|array $args Optional. Array or string of arguments. See WP_Comment_Query::parse_query() + * @param string|array $args Optional. Array or string of arguments. See WP_Comment_Query::__construct() * for information on accepted arguments. Default empty. * @return int|array List of comments or number of found comments if `$count` argument is true. */