Fix redirect URL after login

This commit is contained in:
champsupertramp
2016-03-05 19:17:24 +08:00
parent 2fc78d1d43
commit 963f3648ea
+1 -1
View File
@@ -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'] ) ) );
}