mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-24 17:52:53 +00:00
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
This commit is contained in:
parent
6a7443671b
commit
b2ec3c4303
@ -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() ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user