Ticket #20044: 20044.diff
| File 20044.diff, 681 bytes (added by , 13 years ago) |
|---|
-
wp-includes/query.php
2196 2196 $searchand = ''; 2197 2197 foreach( (array) $q['search_terms'] as $term ) { 2198 2198 $term = esc_sql( like_escape( $term ) ); 2199 $search .= "{$searchand}(($wpdb->posts.post_title LIKE '{$n}{$term}{$n}') OR ($wpdb->posts.post_content LIKE '{$n}{$term}{$n}') )";2199 $search .= "{$searchand}(($wpdb->posts.post_title LIKE '{$n}{$term}{$n}') OR ($wpdb->posts.post_content LIKE '{$n}{$term}{$n}') OR ($wpdb->posts.post_name LIKE '{$n}{$term}{$n}'))"; 2200 2200 $searchand = ' AND '; 2201 2201 } 2202 2202