mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed issue with deleting custom roles;
This commit is contained in:
@@ -39,6 +39,8 @@ if ( isset( $_GET['action'] ) ) {
|
||||
|
||||
delete_option( "um_role_{$role_key}_meta" );
|
||||
|
||||
$um_roles = array_diff( $um_roles, array( $role_key ) );
|
||||
|
||||
$role_keys[$k] = 'um_' . $role_key;
|
||||
}
|
||||
|
||||
@@ -67,6 +69,8 @@ if ( isset( $_GET['action'] ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
update_option( 'um_roles', $um_roles );
|
||||
|
||||
um_js_redirect( add_query_arg( 'msg', 'd', $redirect ) );
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user