Ticket #21841: 21841.patch
File 21841.patch, 587 bytes (added by , 12 years ago) |
---|
-
wp-includes/canonical.php
294 294 $redirect['query'] = preg_replace( '#^\??&*?#', '', $redirect['query'] ); 295 295 if ( $redirect_url && !empty($redirect['query']) ) { 296 296 parse_str( $redirect['query'], $_parsed_query ); 297 $redirect_url = str_replace( '&', '&', $redirect_url ); 297 298 $redirect = @parse_url($redirect_url); 298 299 299 300 if ( ! empty( $_parsed_query['name'] ) && ! empty( $redirect['query'] ) ) {