- fixed conditional js;

- fixed um_ prefix for role data;
This commit is contained in:
nikitozzzzzzz
2018-11-09 16:21:34 +02:00
parent 8cf1567b91
commit 0ca9213dbe
7 changed files with 605 additions and 614 deletions
+5 -2
View File
@@ -530,8 +530,11 @@ if ( ! class_exists( 'um\core\Roles_Capabilities' ) ) {
$temp = array();
foreach ( $role_data as $key=>$value ) {
if ( strpos( $key, '_um_' ) === 0 )
$key = str_replace( '_um_', '', $key );
if ( strpos( $key, '_um_' ) === 0 ) {
$key = preg_replace('/_um_/', '', $key, 1);
}
//$key = str_replace( '_um_', '', $key, $count );
$temp[ $key ] = $value;
}