- fixed access issues with restriction content + rolled back feature with unselected checkboxes access for all logged in users;

- fixed vulnerability on user profile update;
- small changes;
This commit is contained in:
nikitozzzzzzz
2017-12-19 12:38:00 +02:00
parent cb0de87668
commit ef9c06185b
4 changed files with 99 additions and 46 deletions
@@ -33,6 +33,7 @@ if ( ! class_exists( 'Admin_Forms_Settings' ) ) {
return $field_data['value' . $i];
} else {
$value = UM()->options()->get( $field_data['id' . $i] );
$value = is_string( $value ) ? stripslashes( $value ) : $value;
return '' !== $value ? $value : $default;
}
} else {
@@ -40,6 +41,7 @@ if ( ! class_exists( 'Admin_Forms_Settings' ) ) {
return $field_data['value'. $i];
} else {
$value = UM()->options()->get( $field_data['id' . $i] );
$value = is_string( $value ) ? stripslashes( $value ) : $value;
return isset( $value ) ? $value : $default;
}
}