WordPress.org

Make WordPress Core

Ticket #13005: admin-ajax.php.diff

File admin-ajax.php.diff, 538 bytes (added by jimmcq, 4 years ago)
  • admin-ajax.php

     
    7070                die; // require 2 chars for matching 
    7171 
    7272        $results = $wpdb->get_col( "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 = '$taxonomy' AND t.name LIKE ('%" . $s . "%')" ); 
     73        $results = apply_filters( "wp_ajax_{$taxonomy}-search", $results, $s); 
    7374 
    7475        echo join( $results, "\n" ); 
    7576        die;