451 | | parse_str( $parsed_url['query'], $parsed_query ); |
452 | | foreach ( $args_to_check as $qv ) { |
453 | | if ( !isset( $parsed_query[$qv] ) ) |
454 | | $query_string = remove_query_arg( $qv, $query_string ); |
| 451 | if ( ! empty( $parsed_url['query'] ) ) { |
| 452 | parse_str( $parsed_url['query'], $parsed_query ); |
| 453 | foreach ( $args_to_check as $qv ) { |
| 454 | if ( !isset( $parsed_query[$qv] ) ) |
| 455 | $query_string = remove_query_arg( $qv, $query_string ); |
| 456 | } |
| 457 | } else { |
| 458 | $query_string = remove_query_arg( $args_to_check, $query_string ); |