- Timestamp:
- 05/08/2015 07:07:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php
r1390 r1556 269 269 270 270 foreach ( (array) $query->query_vars['search_terms'] as $term ) { 271 $term = esc_sql( like_escape( $term ) );271 $term = esc_sql( $wpdb->esc_like( $term ) ); 272 272 $search .= "{$searchand}(($wpdb->posts.post_title LIKE '{$n}{$term}{$n}') OR ($wpdb->posts.post_content LIKE '{$n}{$term}{$n}'))"; 273 273 $searchand = ' AND ';
Note: See TracChangeset
for help on using the changeset viewer.