Changeset 44546 for trunk/src/wp-includes/class-wp-comment-query.php
- Timestamp:
- 01/10/2019 09:05:50 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r44412 r44546 483 483 // 'status' accepts an array or a comma-separated string. 484 484 $status_clauses = array(); 485 $statuses = $this->query_vars['status']; 486 if ( ! is_array( $statuses ) ) { 487 $statuses = preg_split( '/[\s,]+/', $statuses ); 485 $statuses = wp_parse_list( $this->query_vars['status'] ); 486 487 // Empty 'status' should be interpreted as 'all'. 488 if ( empty( $statuses ) ) { 489 $statuses = array( 'all' ); 488 490 } 489 491 … … 518 520 // User IDs or emails whose unapproved comments are included, regardless of $status. 519 521 if ( ! empty( $this->query_vars['include_unapproved'] ) ) { 520 $include_unapproved = $this->query_vars['include_unapproved']; 521 522 // Accepts arrays or comma-separated strings. 523 if ( ! is_array( $include_unapproved ) ) { 524 $include_unapproved = preg_split( '/[\s,]+/', $include_unapproved ); 525 } 526 527 $unapproved_ids = $unapproved_emails = array(); 522 $include_unapproved = wp_parse_list( $this->query_vars['include_unapproved'] ); 523 524 $unapproved_ids = array(); 525 $unapproved_emails = array(); 528 526 foreach ( $include_unapproved as $unapproved_identifier ) { 529 527 // Numeric values are assumed to be user ids.
Note: See TracChangeset
for help on using the changeset viewer.