Version 1.0.23

This commit is contained in:
ultimatemember
2015-01-25 19:59:18 +02:00
parent 2c3cf6ea8c
commit 33617b72c5
24 changed files with 227 additions and 44 deletions
+10
View File
@@ -815,6 +815,11 @@ class UM_Fields {
if ( !um_can_view_field( $data ) ) return;
if ( !um_can_edit_field( $data ) ) return;
// disable these fields in profile edit only
if ( in_array( $key, array('user_email','username','user_login','user_password') ) && $this->editing == true && $this->set_mode == 'profile' ) {
return;
}
if ( isset( $data['required_opt'] ) ) {
$opt = $data['required_opt'];
if ( um_get_option( $opt[0] ) != $opt[1] ) {
@@ -1805,6 +1810,11 @@ class UM_Fields {
if ( !um_can_view_field( $data ) ) return;
// disable these fields in profile view only
if ( in_array( $key, array('user_password') ) && $this->set_mode == 'profile' ) {
return;
}
if ( !um_field_conditions_are_met( $data ) ) return;
switch( $type ) {