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

See #41017.
Built from https://develop.svn.wordpress.org/trunk@41940


git-svn-id: http://core.svn.wordpress.org/trunk@41774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-10-19 08:49:47 +00:00
parent bdefa6bf34
commit 9c4fb24458
2 changed files with 3 additions and 3 deletions

View File

@ -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. * @since 4.1.0 Refactored to leverage 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. 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` * @return int|array $comments The approved comments, or number of comments if `$count`
* argument is true. * argument is true.
*/ */
@ -217,7 +217,7 @@ function get_comment( &$comment = null, $output = OBJECT ) {
* *
* @since 2.7.0 * @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. * for information on accepted arguments. Default empty.
* @return int|array List of comments or number of found comments if `$count` argument is true. * @return int|array List of comments or number of found comments if `$count` argument is true.
*/ */

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.9-beta3-41939'; $wp_version = '4.9-beta3-41940';
/** /**
* 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.