mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 03:36:28 +09:00
Fix redirection
This commit is contained in:
+4
-2
@@ -31,10 +31,12 @@ class UM_Access {
|
||||
|
||||
if ( strstr( $this->redirect_handler, um_get_core_page('login') ) ){
|
||||
$curr = $ultimatemember->permalinks->get_current_url();
|
||||
$this->redirect_handler = esc_url( add_query_arg('redirect_to', $curr, $this->redirect_handler) );
|
||||
$this->redirect_handler = add_query_arg('redirect_to', um_set_redirect_url($curr), $this->redirect_handler);
|
||||
$this->redirect_handler = esc_url( $this->redirect_handler );
|
||||
}
|
||||
|
||||
exit( wp_redirect( $this->redirect_handler ) );
|
||||
wp_redirect( $this->redirect_handler );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user