- upgrade readme;

- fixed small notice in 2.0.0 upgrade;
This commit is contained in:
nikitozzzzzzz
2018-08-13 09:28:06 +03:00
parent c3ffb29354
commit 6e129bdfff
2 changed files with 7 additions and 2 deletions
@@ -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
View File
@@ -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