Make WordPress Core

Ticket #19033: 19033.patch

File 19033.patch, 592 bytes (added by SergeyBiryukov, 13 years ago)
  • wp-includes/query.php

     
    21812181                        if ( !empty($q['sentence']) ) {
    21822182                                $q['search_terms'] = array($q['s']);
    21832183                        } else {
    2184                                 preg_match_all('/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $q['s'], $matches);
     2184                                preg_match_all('/".*?("|$)|((?<=[\r\n\t ",+])|^)[^\r\n\t ",+]+/', $q['s'], $matches);
    21852185                                $q['search_terms'] = array_map('_search_terms_tidy', $matches[0]);
    21862186                        }
    21872187                        $n = !empty($q['exact']) ? '' : '%';