Changeset 48104 for trunk/src/wp-includes/class-wp-comment-query.php
- Timestamp:
- 06/20/2020 12:00:07 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r47887 r48104 389 389 * The expected return type from this filter depends on the value passed in the request query_vars. 390 390 * When `$this->query_vars['count']` is set, the filter should return the comment count as an int. 391 * When `'ids' === $this->query_vars['fields']`, the filter should return an array of comment ids.391 * When `'ids' === $this->query_vars['fields']`, the filter should return an array of comment IDs. 392 392 * Otherwise the filter should return an array of WP_Comment objects. 393 393 * … … 551 551 $unapproved_emails = array(); 552 552 foreach ( $include_unapproved as $unapproved_identifier ) { 553 // Numeric values are assumed to be user ids.553 // Numeric values are assumed to be user IDs. 554 554 if ( is_numeric( $unapproved_identifier ) ) { 555 555 $approved_clauses[] = $wpdb->prepare( "( user_id = %d AND comment_approved = '0' )", $unapproved_identifier );
Note: See TracChangeset
for help on using the changeset viewer.