Ticket #25231: 25231.patch
File 25231.patch, 709 bytes (added by , 12 years ago) |
---|
-
wp-admin/includes/ajax-actions.php
87 87 if ( strlen( $s ) < 2 ) 88 88 wp_die(); // require 2 chars for matching 89 89 90 $results = $wpdb->get_col( $wpdb->prepare( "SELECT t.name FROM $wpdb->term_taxonomy AS tt INNER JOIN $wpdb->terms AS t ON tt.term_id = t.term_id WHERE tt.taxonomy = %s AND t.name LIKE (%s)", $taxonomy, '%' . like_escape( $s ) . '%') );90 $results = get_terms( $taxonomy, array( 'name_like' => $s, 'fields' => 'names', 'hide_empty' => false ) ); 91 91 92 92 echo join( $results, "\n" ); 93 93 wp_die();