Changeset 23554 for trunk/wp-includes/query.php
- Timestamp:
- 03/01/2013 04:28:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r23436 r23554 1734 1734 if ( !empty($q['cat']) && '0' != $q['cat'] && !$this->is_singular && $this->query_vars_changed ) { 1735 1735 $q['cat'] = ''.urldecode($q['cat']).''; 1736 $q['cat'] = addslashes_gpc($q['cat']); 1736 1737 $cat_array = preg_split('/[,\s]+/', $q['cat']); 1737 1738 $q['cat'] = ''; … … 2187 2188 // If a search pattern is specified, load the posts that match 2188 2189 if ( !empty($q['s']) ) { 2190 // added slashes screw with quote grouping when done early, so done later 2191 $q['s'] = stripslashes($q['s']); 2189 2192 if ( empty( $_GET['s'] ) && $this->is_main_query() ) 2190 2193 $q['s'] = urldecode($q['s']); … … 2295 2298 } else { 2296 2299 $q['author'] = (string)urldecode($q['author']); 2300 $q['author'] = addslashes_gpc($q['author']); 2297 2301 if ( strpos($q['author'], '-') !== false ) { 2298 2302 $eq = '!='; … … 2358 2362 } 2359 2363 $q['orderby'] = urldecode($q['orderby']); 2364 $q['orderby'] = addslashes_gpc($q['orderby']); 2360 2365 2361 2366 $orderby_array = array();
Note: See TracChangeset
for help on using the changeset viewer.