Ticket #19033: 19033.patch
File 19033.patch, 592 bytes (added by , 13 years ago) |
---|
-
wp-includes/query.php
2181 2181 if ( !empty($q['sentence']) ) { 2182 2182 $q['search_terms'] = array($q['s']); 2183 2183 } else { 2184 preg_match_all('/".*?("|$)|((?<=[\ \s",+])|^)[^\\s",+]+/', $q['s'], $matches);2184 preg_match_all('/".*?("|$)|((?<=[\r\n\t ",+])|^)[^\r\n\t ",+]+/', $q['s'], $matches); 2185 2185 $q['search_terms'] = array_map('_search_terms_tidy', $matches[0]); 2186 2186 } 2187 2187 $n = !empty($q['exact']) ? '' : '%';