From f7dabb40c1293cb6490d4fc16e6c2b14cfbbc0e8 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Mon, 13 Nov 2017 16:25:18 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-comment-query.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/class-wp-comment-query.php b/src/wp-includes/class-wp-comment-query.php index 087f341d9e..690298d1d8 100644 --- a/src/wp-includes/class-wp-comment-query.php +++ b/src/wp-includes/class-wp-comment-query.php @@ -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.