mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
-fixed role ID regexp
This commit is contained in:
@@ -90,7 +90,7 @@ if ( ! empty( $_POST['role'] ) ) {
|
||||
$error .= __( 'Title is empty!', 'ultimate-member' ) . '<br />';
|
||||
}
|
||||
|
||||
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' );
|
||||
|
||||
Reference in New Issue
Block a user