mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Update 1.3.29
This commit is contained in:
+7
-8
@@ -18,17 +18,16 @@ class UM_Logout {
|
||||
if ( is_user_logged_in() ) {
|
||||
|
||||
if ( isset($_REQUEST['redirect_to']) && $_REQUEST['redirect_to'] !== '' ) {
|
||||
$redirect_to = $_REQUEST['redirect_to'];
|
||||
wp_logout();
|
||||
exit( wp_redirect( $_REQUEST['redirect_to'] ) );
|
||||
} else if ( um_user('after_logout') == 'redirect_home' ) {
|
||||
$redirect_to = home_url();
|
||||
wp_logout();
|
||||
um_redirect_home();
|
||||
} else {
|
||||
$redirect_to = um_user('logout_redirect_url');
|
||||
wp_logout();
|
||||
exit( wp_redirect( um_user('logout_redirect_url') ) );
|
||||
}
|
||||
|
||||
wp_logout();
|
||||
|
||||
exit( wp_redirect( $redirect_to ) );
|
||||
|
||||
|
||||
} else {
|
||||
um_redirect_home();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user