Changeset 38079 for trunk/src/wp-includes/class-wp-tax-query.php
- Timestamp:
- 07/17/2016 04:32:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-tax-query.php
r37342 r38079 563 563 if ( empty( $query['taxonomy'] ) ) { 564 564 if ( 'term_taxonomy_id' !== $query['field'] ) { 565 $query = new WP_Error( ' Invalid taxonomy');565 $query = new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy.' ) ); 566 566 return; 567 567 } … … 570 570 $query['include_children'] = false; 571 571 } elseif ( ! taxonomy_exists( $query['taxonomy'] ) ) { 572 $query = new WP_Error( ' Invalid taxonomy');572 $query = new WP_Error( 'invalid_taxonomy', __( 'Invalid taxonomy.' ) ); 573 573 return; 574 574 } … … 656 656 657 657 if ( 'AND' == $query['operator'] && count( $terms ) < count( $query['terms'] ) ) { 658 $query = new WP_Error( ' Inexistent terms');658 $query = new WP_Error( 'inexistent_terms', __( 'Inexistent terms.' ) ); 659 659 return; 660 660 }
Note: See TracChangeset
for help on using the changeset viewer.