Changeset 47808 for trunk/src/wp-includes/class-wp-tax-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-tax-query.php
r47550 r47808 401 401 $operator = strtoupper( $clause['operator'] ); 402 402 403 if ( 'IN' == $operator ) {403 if ( 'IN' === $operator ) { 404 404 405 405 if ( empty( $terms ) ) { … … 431 431 $where = "$alias.term_taxonomy_id $operator ($terms)"; 432 432 433 } elseif ( 'NOT IN' == $operator ) {433 } elseif ( 'NOT IN' === $operator ) { 434 434 435 435 if ( empty( $terms ) ) { … … 445 445 )"; 446 446 447 } elseif ( 'AND' == $operator ) {447 } elseif ( 'AND' === $operator ) { 448 448 449 449 if ( empty( $terms ) ) { … … 642 642 } 643 643 644 if ( 'AND' == $query['operator'] && count( $term_list ) < count( $query['terms'] ) ) {644 if ( 'AND' === $query['operator'] && count( $term_list ) < count( $query['terms'] ) ) { 645 645 $query = new WP_Error( 'inexistent_terms', __( 'Inexistent terms.' ) ); 646 646 return;
Note: See TracChangeset
for help on using the changeset viewer.