- removed UM prefix before UM custom roles;

This commit is contained in:
nikitozzzzzzz
2017-07-30 22:54:39 +03:00
parent 1cccd2caff
commit 8b9320b09f
6 changed files with 12 additions and 17 deletions
+2 -2
View File
@@ -2563,12 +2563,12 @@ if ( ! class_exists( 'Fields' ) ) {
$res = apply_filters("um_view_field_value_{$type}", $res, $data );
if ( $key == 'role_radio' || $key == 'role_select' ) {
/* if ( $key == 'role_radio' || $key == 'role_select' ) {
$role_meta = UM()->roles()->role_data( um_user( 'role' ) );
if ( ! empty( $role_meta['is_custom'] ) ) {
$res = 'UM ' . $res;
}
}
}*/
$output .= '<div class="um-field-area">';
$output .= '<div class="um-field-value">' . $res . '</div>';