Changeset 17997 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 05/22/2011 11:22:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r17789 r17997 1285 1285 } 1286 1286 1287 if ( !empty($name__like) ) 1288 $where .= " AND t.name LIKE '" . like_escape( $name__like ) . "%'"; 1287 if ( !empty($name__like) ) { 1288 $name__like = like_escape( $name__like ); 1289 $where .= $wpdb->prepare( " AND t.name LIKE %s", $name__like . '%' ); 1290 } 1289 1291 1290 1292 if ( '' !== $parent ) { … … 1308 1310 if ( !empty($search) ) { 1309 1311 $search = like_escape($search); 1310 $where .= " AND (t.name LIKE '%$search%')";1312 $where .= $wpdb->prepare( " AND (t.name LIKE %s)", '%' . $search . '%'); 1311 1313 } 1312 1314
Note: See TracChangeset
for help on using the changeset viewer.