diff --git a/includes/admin/templates/role/role-edit.php b/includes/admin/templates/role/role-edit.php index ea402be9..b705955a 100644 --- a/includes/admin/templates/role/role-edit.php +++ b/includes/admin/templates/role/role-edit.php @@ -90,7 +90,7 @@ if ( ! empty( $_POST['role'] ) ) { $error .= __( 'Title is empty!', 'ultimate-member' ) . '
'; } - if ( preg_match( "/[a-z0-9]+$/i", $data['name'] ) ) { + if ( preg_match( "/^[\p{Latin}\d\-_ ]+$/i", $data['name'] ) ) { $id = sanitize_title( $data['name'] ); } else { $auto_increment = UM()->options()->get( 'custom_roles_increment' );