Changeset 18056 for trunk/wp-includes/query.php
- Timestamp:
- 05/26/2011 04:41:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r17883 r18056 2180 2180 $searchand = ' AND '; 2181 2181 } 2182 $term = esc_sql( like_escape( $q['s'] ) );2183 if ( empty($q['sentence']) && count($q['search_terms']) > 1 && $q['search_terms'][0] != $q['s'] )2184 $search .= " OR ($wpdb->posts.post_title LIKE '{$n}{$term}{$n}') OR ($wpdb->posts.post_content LIKE '{$n}{$term}{$n}')";2185 2182 2186 2183 if ( !empty($search) ) {
Note: See TracChangeset
for help on using the changeset viewer.