Changeset 12052
- Timestamp:
- 10/18/2009 11:50:59 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r12036 r12052 1198 1198 $s = stripslashes($_POST['ps']); 1199 1199 preg_match_all('/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $s, $matches); 1200 $search_terms = array_map( create_function('$a', 'return trim($a, "\\"\'\\n\\r ");'), $matches[0]);1200 $search_terms = array_map('_search_terms_tidy', $matches[0]); 1201 1201 1202 1202 $searchand = $search = ''; -
trunk/wp-includes/functions.php
r12044 r12052 3480 3480 return $file_data; 3481 3481 } 3482 /* 3483 * Used internally to tidy up the search terms 3484 * 3485 * @private 3486 * @since 2.9.0 3487 */ 3488 function _search_terms_tidy($t) { 3489 return trim($t, "\"\'\n\r "); 3490 } 3482 3491 ?> -
trunk/wp-includes/query.php
r11998 r12052 1748 1748 } else { 1749 1749 preg_match_all('/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $q['s'], $matches); 1750 $q['search_terms'] = array_map( create_function('$a', 'return trim($a, "\\"\'\\n\\r ");'), $matches[0]);1750 $q['search_terms'] = array_map('_search_terms_tidy', $matches[0]); 1751 1751 } 1752 1752 $n = !empty($q['exact']) ? '' : '%';
Note: See TracChangeset
for help on using the changeset viewer.