Fix redirect URL

This commit is contained in:
champsupertramp
2016-03-03 22:04:23 +08:00
parent 9861657899
commit 5da7e6f1e6
6 changed files with 36 additions and 9 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class UM_Access {
if ( strstr( $this->redirect_handler, um_get_core_page('login') ) ){
$curr = $ultimatemember->permalinks->get_current_url();
$this->redirect_handler = add_query_arg('redirect_to', um_set_redirect_url($curr), $this->redirect_handler);
$this->redirect_handler = add_query_arg('redirect_to', urlencode_deep($curr), $this->redirect_handler);
$this->redirect_handler = esc_url( $this->redirect_handler );
}