From 3acc1ea637e18bc5ef56b923ccd9a4ba6bb3f91c Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Wed, 28 Sep 2016 16:41:04 +0800 Subject: [PATCH] Fixed redirection after login with refresh active page --- core/um-actions-misc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/um-actions-misc.php b/core/um-actions-misc.php index a5bae5eb..0345cc66 100644 --- a/core/um-actions-misc.php +++ b/core/um-actions-misc.php @@ -29,7 +29,13 @@ break; case 'refresh': + $url = $ultimatemember->permalinks->get_current_url(); + + if ( defined('DOING_AJAX') && DOING_AJAX ) { + $url = apply_filters('um_browser_url_redirect_to__filter', $url ); + } + break; }