Ticket #12891: 12891-better_get_tax_sql_error_handling.patch
File 12891-better_get_tax_sql_error_handling.patch, 448 bytes (added by , 15 years ago) |
---|
-
wp-includes/taxonomy.php
586 586 587 587 $sql_single = get_objects_in_term( $query['terms'], $query['taxonomy'], $query ); 588 588 589 if ( empty( $sql_single ) )589 if ( empty( $sql_single ) || is_wp_error( $sql_single ) ) 590 590 return ' AND 0 = 1'; 591 591 592 592 $sql[] = $sql_single;