mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- added ability to use metatable;
This commit is contained in:
@@ -1446,7 +1446,7 @@ if ( ! class_exists( 'um\core\User' ) ) {
|
||||
if ( ! empty( $this->profile['role'] ) ) {
|
||||
return $this->profile['role'];
|
||||
} else {
|
||||
if ( $this->profile['wp_roles'] == 'administrator' ) {
|
||||
if ( ! empty( $this->profile['wp_roles'] ) && $this->profile['wp_roles'] == 'administrator' ) {
|
||||
return 'admin';
|
||||
} else {
|
||||
return 'member';
|
||||
|
||||
Reference in New Issue
Block a user