WordPress.org

Make WordPress Core

Ticket #33864: 33731.diff

File 33731.diff, 756 bytes (added by mehulkaklotar, 5 years ago)
  • src/wp-includes/taxonomy-functions.php

     
    808808                return $term;
    809809        }
    810810
    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 ) );
    812812        if ( ! $term )
    813813                return false;
    814814