From b3ae927f5c84694c1a5b77ba9966c6150ea4b3c0 Mon Sep 17 00:00:00 2001 From: arzola Date: Wed, 20 Apr 2022 17:18:52 -0400 Subject: [PATCH] fix: fixed behaviour for logged in users --- inc/actions/namespace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/actions/namespace.php b/inc/actions/namespace.php index 0d9f0fd..521d86c 100644 --- a/inc/actions/namespace.php +++ b/inc/actions/namespace.php @@ -353,7 +353,7 @@ function remove_widgets() { */ function override_signup_page() { global $pagenow; - if( getenv('PB_CUSTOM_SIGNUP') && $pagenow === 'wp-signup.php' ) { + if( getenv('PB_CUSTOM_SIGNUP') && ! is_user_logged_in() && $pagenow === 'wp-signup.php' ) { wp_redirect( network_home_url('/register')); exit(); }