mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 19:56:27 +09:00
- upgrade readme;
- fixed small notice in 2.0.0 upgrade;
This commit is contained in:
@@ -133,7 +133,11 @@ if ( ! empty( $um_roles ) ) {
|
||||
}
|
||||
}
|
||||
} elseif ( '_um_profilec_upgrade_role' == $metakey ) {
|
||||
$metadata = $roles_associations[ $metadata ];
|
||||
if ( isset( $roles_associations[ $metadata ] ) ) {
|
||||
$metadata = $roles_associations[ $metadata ];
|
||||
} else {
|
||||
$metadata = '';
|
||||
}
|
||||
}
|
||||
|
||||
$role_meta[ $metakey ] = $metadata;
|
||||
@@ -149,6 +153,7 @@ update_option( 'um_roles', $role_keys );
|
||||
global $wp_roles, $wp_version;
|
||||
if ( version_compare( $wp_version, '4.9', '<' ) ) {
|
||||
$wp_roles->_init();
|
||||
$wp_roles->reinit();
|
||||
} elseif ( method_exists( $wp_roles, 'for_site' ) ) {
|
||||
$wp_roles->for_site( get_current_blog_id() );
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ Plugin URI: https://ultimatemember.com/
|
||||
Contributors: ultimatemember, champsupertramp, nsinelnikov
|
||||
Donate link:
|
||||
Tags: community, member, membership, user-profile, user-registration
|
||||
Requires at least: 4.1
|
||||
Requires at least: 4.7
|
||||
Tested up to: 4.9
|
||||
Stable tag: 2.0.23
|
||||
License: GNU Version 2 or Any Later Version
|
||||
|
||||
Reference in New Issue
Block a user