mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Fix redirect URL after login
This commit is contained in:
@@ -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'] ) ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user