diff --git a/src/wp-includes/class-wp-comment-query.php b/src/wp-includes/class-wp-comment-query.php
index 25b7fcf..3e1b103 100644
a
|
b
|
class WP_Comment_Query { |
235 | 235 | * @type string $status Comment status to limit results by. Accepts 'hold' |
236 | 236 | * (`comment_status=0`), 'approve' (`comment_status=1`), |
237 | 237 | * 'all', or a custom comment status. Default 'all'. |
| 238 | * @type array $status__not_in Exclude comments from a given array of comment stati. |
| 239 | * Default empty. |
238 | 240 | * @type string|array $type Include comments of a given type, or array of types. |
239 | 241 | * Accepts 'comment', 'pings' (includes 'pingback' and |
240 | 242 | * 'trackback'), or anycustom type string. Default empty. |
… |
… |
class WP_Comment_Query { |
291 | 293 | 'post_status' => '', |
292 | 294 | 'post_type' => '', |
293 | 295 | 'status' => 'all', |
| 296 | 'status__not_in' => '', |
294 | 297 | 'type' => '', |
295 | 298 | 'type__in' => '', |
296 | 299 | 'type__not_in' => '', |
… |
… |
class WP_Comment_Query { |
493 | 496 | $statuses = preg_split( '/[\s,]+/', $statuses ); |
494 | 497 | } |
495 | 498 | |
| 499 | // unlink 'status', 'status__not_in' accepts only an array |
| 500 | $status__not_in = $this->query_vars['status__not_in']; |
| 501 | $statuses = array_diff( $statuses, $status__not_in ); |
| 502 | unset( $status__not_in ); |
| 503 | |
496 | 504 | // 'any' overrides other statuses. |
497 | 505 | if ( ! in_array( 'any', $statuses ) ) { |
498 | 506 | foreach ( $statuses as $status ) { |