Fix redirection

This commit is contained in:
champsupertramp
2016-03-02 21:50:18 +08:00
parent 9ab65a84d0
commit 3967a1a7bd
5 changed files with 59 additions and 7 deletions
+4 -2
View File
@@ -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 );
}
}