- fixed vulnerabilities;

- small changes and fixes;
This commit is contained in:
nikitozzzzzzz
2017-08-07 16:30:12 +03:00
parent 2b21ebbc7c
commit c4b6484438
18 changed files with 59 additions and 26 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ if ( ! class_exists( 'Form' ) ) {
$role = current( $_POST['role'] );
}
if ( isset( $custom_field_roles ) && is_array( $custom_field_roles ) && ! empty( $role ) && ! in_array( $role , $custom_field_roles ) ) {
if ( /*isset( $custom_field_roles ) && is_array( $custom_field_roles ) &&*/ ! empty( $role ) && ! in_array( $role , $custom_field_roles ) ) {
wp_die( __( 'This is not possible for security reasons.','ultimate-member') );
}