- fixed the role's option getting;

This commit is contained in:
nikitozzzzzzz
2018-06-07 11:09:49 +03:00
parent 61684c5707
commit d68eb68cf6
+1 -1
View File
@@ -308,7 +308,7 @@ if ( ! class_exists( 'um\core\Form' ) ) {
global $wp_roles;
$role_keys = array_map( function( $item ) {
return 'um_' . $item;
}, get_option( 'um_roles' ) );
}, get_option( 'um_roles', array() ) );
$exclude_roles = array_diff( array_keys( $wp_roles->roles ), array_merge( $role_keys, array( 'subscriber' ) ) );
if ( ! empty( $role ) &&