mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix profile field conditional logic with role
This commit is contained in:
@@ -268,14 +268,19 @@ function um_user_ip() {
|
||||
if ( !isset( $data['conditions'] ) ) return true;
|
||||
|
||||
$state = 1;
|
||||
|
||||
|
||||
foreach( $data['conditions'] as $k => $arr ) {
|
||||
if ( $arr[0] == 'show' ) {
|
||||
|
||||
$state = 1;
|
||||
$val = $arr[3];
|
||||
$op = $arr[2];
|
||||
$field = um_profile($arr[1]);
|
||||
|
||||
if( strstr( $arr[1] , 'role_') ){
|
||||
$arr[1] = 'role';
|
||||
}
|
||||
|
||||
$field = um_profile( $arr[1] );
|
||||
|
||||
switch( $op ) {
|
||||
case 'equals to':
|
||||
|
||||
Reference in New Issue
Block a user