- fixed issue with deleting custom roles;

This commit is contained in:
nikitozzzzzzz
2017-11-16 01:07:08 +02:00
parent d3990feb4c
commit 7d45a0a229
@@ -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;
}