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.

Built from https://develop.svn.wordpress.org/trunk@30109


git-svn-id: http://core.svn.wordpress.org/trunk@30109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2014-10-30 02:51:23 +00:00
parent af026330c4
commit 54020268f7
2 changed files with 5 additions and 3 deletions

View File

@ -128,9 +128,11 @@ function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $
* Retrieve the approved comments for post $post_id. * Retrieve the approved comments for post $post_id.
* *
* @since 2.0.0 * @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 int $post_id The ID of the post.
* @param array $args Optional. WP_Comment_Query args. * @param array $args Optional. See {@see WP_Comment_Query} for information
* on accepted arguments.
* @return array $comments The approved comments. * @return array $comments The approved comments.
*/ */
function get_approved_comments( $post_id = 0, $args = array() ) { function get_approved_comments( $post_id = 0, $args = array() ) {

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.1-alpha-30108'; $wp_version = '4.1-alpha-30109';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.