mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 12:43:33 +09:00
Fix redirection
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
global $ultimatemember;
|
||||
|
||||
if ( isset( $_REQUEST['redirect_to'] ) && !empty( $_REQUEST['redirect_to'] ) ) {
|
||||
|
||||
echo '<input type="hidden" name="redirect_to" id="redirect_to" value="'.$_REQUEST['redirect_to'].'" />';
|
||||
|
||||
echo '<input type="hidden" name="redirect_to" id="redirect_to" value="'.esc_attr($_REQUEST['redirect_to']).'" />';
|
||||
|
||||
} else if ( isset( $args['after_login'] ) && !empty( $args['after_login'] ) ) {
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
break;
|
||||
|
||||
}
|
||||
$url = esc_attr( um_set_redirect_url( $url ) );
|
||||
|
||||
echo '<input type="hidden" name="redirect_to" id="redirect_to" value="' . $url . '" />';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user