Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/wp-includes/taxonomy.php

    r18021 r17527  
    12561256    }
    12571257
    1258     if ( !empty($name__like) ) {
    1259         $name__like = like_escape( $name__like );
    1260         $where .= $wpdb->prepare( " AND t.name LIKE %s", $name__like . '%' );
    1261     }
     1258    if ( !empty($name__like) )
     1259        $where .= " AND t.name LIKE '" . like_escape( $name__like ) . "%'";
    12621260
    12631261    if ( '' !== $parent ) {
     
    12811279    if ( !empty($search) ) {
    12821280        $search = like_escape($search);
    1283         $where .= $wpdb->prepare( " AND (t.name LIKE %s)", '%' . $search . '%');
     1281        $where .= " AND (t.name LIKE '%$search%')";
    12841282    }
    12851283
Note: See TracChangeset for help on using the changeset viewer.