Make WordPress Core

Changeset 13492


Ignore:
Timestamp:
02/28/2010 07:47:11 AM (15 years ago)
Author:
dd32
Message:

Initialise Search related query vars. Props scribu. Fixes #11480

File:
1 edited

Legend:

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

    r13486 r13492  
    12011201            , 'meta_value'
    12021202            , 'preview'
     1203            , 's'
     1204            , 'sentence'
    12031205        );
    12041206
     
    17761778            }
    17771779            $term = esc_sql($q['s']);
    1778             if (empty($q['sentence']) && count($q['search_terms']) > 1 && $q['search_terms'][0] != $q['s'] )
     1780            if ( empty($q['sentence']) && count($q['search_terms']) > 1 && $q['search_terms'][0] != $q['s'] )
    17791781                $search .= " OR ($wpdb->posts.post_title LIKE '{$n}{$term}{$n}') OR ($wpdb->posts.post_content LIKE '{$n}{$term}{$n}')";
    17801782
Note: See TracChangeset for help on using the changeset viewer.