From 2f95f440088b42e90c7ca707b165d011b9368365 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Mon, 13 Nov 2017 16:26:47 +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. Built from https://develop.svn.wordpress.org/trunk@42165 git-svn-id: http://core.svn.wordpress.org/trunk@41996 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-comment-query.php | 7 ++++--- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-comment-query.php b/wp-includes/class-wp-comment-query.php index 087f341d9e..690298d1d8 100644 --- a/wp-includes/class-wp-comment-query.php +++ b/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. diff --git a/wp-includes/version.php b/wp-includes/version.php index a211a2df9b..be619fcd01 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42163'; +$wp_version = '5.0-alpha-42165'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.