Skip to content

Commit

Permalink
Simplify query to redirect_url
Browse files Browse the repository at this point in the history
  • Loading branch information
alexookah authored Jul 29, 2024
1 parent 4b719f3 commit 384bfe5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions SimpleWebsiteRedirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,7 @@ public static function filter_redirect_url( $url ) {
);
}

$query = $current_url->query;
if ( ! empty( $query ) ) {
$redirect_url->query = $query;
}
$redirect_url->query = $current_url->query;

$url = $redirect_url->toString();
}
Expand Down

0 comments on commit 384bfe5

Please sign in to comment.