mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 05:33:36 +09:00
- fixed default values on Add User Role;
- fixed some PHP notices;
This commit is contained in:
@@ -189,7 +189,8 @@ if ( ! class_exists( 'Access' ) ) {
|
||||
if ( is_front_page() ) {
|
||||
if ( is_user_logged_in() ) {
|
||||
|
||||
if ( ! empty( um_user( 'default_homepage' ) ) )
|
||||
$user_default_homepage = um_user( 'default_homepage' );
|
||||
if ( ! empty( $user_default_homepage ) )
|
||||
return;
|
||||
|
||||
$redirect_homepage = um_user( 'redirect_homepage' );
|
||||
|
||||
@@ -14,7 +14,8 @@ function um_access_profile( $user_id ) {
|
||||
|
||||
um_fetch_user( $user_id );
|
||||
|
||||
if ( ! in_array( um_user( 'account_status' ), array( 'approved' ) ) ) {
|
||||
$account_status = um_user( 'account_status' );
|
||||
if ( ! in_array( $account_status, array( 'approved' ) ) ) {
|
||||
um_redirect_home();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user