mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Merge branch 'master' into fix_privacy_tab_content
This commit is contained in:
@@ -573,7 +573,8 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
|
||||
} elseif ( um_user( $key ) && $this->editing == true ) {
|
||||
|
||||
if ( strstr( $key, 'user_pass' ) ) {
|
||||
//show empty value for password fields
|
||||
if ( strstr( $key, 'user_pass' ) || $type == 'password' ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -3472,9 +3473,12 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
|
||||
if (isset( $data['in_group'] ) && $data['in_group'] != '' && $rule != 'group') return;
|
||||
|
||||
if ($visibility == 'edit') return;
|
||||
if ( $visibility == 'edit' ) return;
|
||||
|
||||
if (in_array( $type, array( 'block', 'shortcode', 'spacing', 'divider', 'group' ) )) {
|
||||
//invisible on profile page
|
||||
if ( $type == 'password' ) return;
|
||||
|
||||
if ( in_array( $type, array( 'block', 'shortcode', 'spacing', 'divider', 'group' ) ) ) {
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user