Skip to content

Commit cba8acb

Browse files
committed
Refactor redirect_to_relaystate_if_trusted method
1 parent d8bb38e commit cba8acb

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

onelogin-saml-sso/php/functions.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@ function redirect_to_relaystate_if_trusted($url) {
5151
$url = wp_validate_redirect($url, home_url());
5252
}
5353

54-
if ($trusted) {
55-
wp_redirect($url);
56-
} else {
57-
wp_redirect(home_url());
58-
}
54+
wp_redirect($url);
5955
exit();
6056
}
6157

0 commit comments

Comments
 (0)