From b2ec3c4303e16954e97151089df902ef0fcabcf8 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Thu, 30 Oct 2014 02:50:16 +0000 Subject: [PATCH] Update the changelog for `get_approved_comments()` to reflect that the function was refactored to leverage `WP_Comment_Query` in [30098]. Also updates the `$args` parameter description with a reference to see `WP_Comment_Query` for argument information. See #12668. git-svn-id: https://develop.svn.wordpress.org/trunk@30109 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index d924b3152a..1fff3ac548 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -128,9 +128,11 @@ function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $ * Retrieve the approved comments for post $post_id. * * @since 2.0.0 + * @since 4.1.0 Refactored to leverage {@see WP_Comment_Query} over a direct query. * - * @param int $post_id The ID of the post. - * @param array $args Optional. WP_Comment_Query args. + * @param int $post_id The ID of the post. + * @param array $args Optional. See {@see WP_Comment_Query} for information + * on accepted arguments. * @return array $comments The approved comments. */ function get_approved_comments( $post_id = 0, $args = array() ) {