mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
1caf85bf31
- fixed no-UM custom roles update;
14 lines
333 B
PHP
14 lines
333 B
PHP
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
|
|
|
|
|
function um_upgrade_roles2054() {
|
|
UM()->admin()->check_ajax_nonce();
|
|
|
|
um_maybe_unset_time_limit();
|
|
|
|
include 'roles.php';
|
|
|
|
update_option( 'um_last_version_upgrade', '2.0.54' );
|
|
|
|
wp_send_json_success( array( 'message' => __( 'Roles was upgraded successfully', 'ultimate-member' ) ) );
|
|
} |