Changeset 61590 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 02/04/2026 06:51:51 PM (5 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-query.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r61470 r61590 2387 2387 2388 2388 if ( ! empty( $query_vars['author'] ) && '0' != $query_vars['author'] ) { 2389 $query_vars['author'] = addslashes_gpc( '' . urldecode( $query_vars['author'] ) );2389 $query_vars['author'] = wp_slash( '' . urldecode( $query_vars['author'] ) ); 2390 2390 $authors = array_unique( array_map( 'intval', preg_split( '/[,\s]+/', $query_vars['author'] ) ) ); 2391 2391 sort( $authors ); … … 2506 2506 if ( is_array( $query_vars['orderby'] ) ) { 2507 2507 foreach ( $query_vars['orderby'] as $_orderby => $order ) { 2508 $orderby = addslashes_gpc( urldecode( $_orderby ) );2508 $orderby = wp_slash( urldecode( $_orderby ) ); 2509 2509 $parsed = $this->parse_orderby( $orderby ); 2510 2510 … … 2519 2519 } else { 2520 2520 $query_vars['orderby'] = urldecode( $query_vars['orderby'] ); 2521 $query_vars['orderby'] = addslashes_gpc( $query_vars['orderby'] );2521 $query_vars['orderby'] = wp_slash( $query_vars['orderby'] ); 2522 2522 2523 2523 foreach ( explode( ' ', $query_vars['orderby'] ) as $i => $orderby ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)