Make WordPress Core


Ignore:
Timestamp:
05/26/2011 04:41:59 PM (14 years ago)
Author:
ryan
Message:

Remove duplicate sentence search terms. Props scribu. fixes #17152

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r17883 r18056  
    21802180                $searchand = ' AND ';
    21812181            }
    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}')";
    21852182
    21862183            if ( !empty($search) ) {
Note: See TracChangeset for help on using the changeset viewer.