Changeset 47808 for trunk/src/wp-includes/class-wp-comment-query.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r47625 r47808 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 * … … 445 445 $comment_ids = array_map( 'intval', $comment_ids ); 446 446 447 if ( 'ids' == $this->query_vars['fields'] ) {447 if ( 'ids' === $this->query_vars['fields'] ) { 448 448 $this->comments = $comment_ids; 449 449 return $this->comments; … … 571 571 } 572 572 573 $order = ( 'ASC' == strtoupper( $this->query_vars['order'] ) ) ? 'ASC' : 'DESC';573 $order = ( 'ASC' === strtoupper( $this->query_vars['order'] ) ) ? 'ASC' : 'DESC'; 574 574 575 575 // Disable ORDER BY with 'none', an empty array, or boolean false.
Note: See TracChangeset
for help on using the changeset viewer.