From 963f3648ea9c9c0155f4ca2eec5212f7c20af678 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Sat, 5 Mar 2016 19:17:24 +0800 Subject: [PATCH] Fix redirect URL after login --- core/um-actions-login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-actions-login.php b/core/um-actions-login.php index aa9de40b..682db10e 100644 --- a/core/um-actions-login.php +++ b/core/um-actions-login.php @@ -135,7 +135,7 @@ do_action('um_on_login_before_redirect', um_user('ID') ); // Priority redirect - if ( isset( $args['redirect_to'] ) ) { + if ( isset( $args['redirect_to'] ) && ! empty( $args['redirect_to'] ) ) { exit( wp_redirect( urldecode( $args['redirect_to'] ) ) ); }