Ticket #33864: 33731.diff
File 33731.diff, 756 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/taxonomy-functions.php
808 808 return $term; 809 809 } 810 810 811 $term = $wpdb->get_row( $wpdb->prepare( "SELECT t.*, tt.* FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = %s AND $field = %s LIMIT 1", $taxonomy, $value ) );811 $term = $wpdb->get_row( $wpdb->prepare( "SELECT t.*, tt.* FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = %s AND BINARY $field = %s LIMIT 1", $taxonomy, $value ) ); 812 812 if ( ! $term ) 813 813 return false; 814 814