Correct documentation for `status` param of `WP_Comment_Query`.

The `status` parameter accepts an array or string/comma-separated list.

Introduced in [30084].

Props pbiron.
Fixes #41338.

git-svn-id: https://develop.svn.wordpress.org/trunk@42165 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges 2017-11-13 16:25:18 +00:00
parent e26f3b5baf
commit f7dabb40c1
1 changed files with 4 additions and 3 deletions

View File

@ -222,9 +222,10 @@ class WP_Comment_Query {
* Default empty.
* @type string $search Search term(s) to retrieve matching comments for.
* Default empty.
* @type string $status Comment status to limit results by. Accepts 'hold'
* (`comment_status=0`), 'approve' (`comment_status=1`),
* 'all', or a custom comment status. Default 'all'.
* @type string|array $status Comment stati to limit results by. Accepts an array
* or space/comma separate list of 'hold' (`comment_status=0`),
* 'approve' (`comment_status=1`), 'all', or a custom
* comment status. Default 'all'.
* @type string|array $type Include comments of a given type, or array of types.
* Accepts 'comment', 'pings' (includes 'pingback' and
* 'trackback'), or anycustom type string. Default empty.