Changeset 23416 for trunk/wp-includes/query.php
- Timestamp:
- 02/14/2013 10:51:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r23191 r23416 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']);1737 1736 $cat_array = preg_split('/[,\s]+/', $q['cat']); 1738 1737 $q['cat'] = ''; … … 2181 2180 // If a search pattern is specified, load the posts that match 2182 2181 if ( !empty($q['s']) ) { 2183 // added slashes screw with quote grouping when done early, so done later2184 $q['s'] = stripslashes($q['s']);2185 2182 if ( empty( $_GET['s'] ) && $this->is_main_query() ) 2186 2183 $q['s'] = urldecode($q['s']); … … 2291 2288 } else { 2292 2289 $q['author'] = (string)urldecode($q['author']); 2293 $q['author'] = addslashes_gpc($q['author']);2294 2290 if ( strpos($q['author'], '-') !== false ) { 2295 2291 $eq = '!='; … … 2353 2349 } 2354 2350 $q['orderby'] = urldecode($q['orderby']); 2355 $q['orderby'] = addslashes_gpc($q['orderby']);2356 2351 2357 2352 $orderby_array = array();
Note: See TracChangeset
for help on using the changeset viewer.