private function get_user_info() { $switch_to_user = ''; if (!is_multisite() || current_user_can('manage_network_users')) { $anchor_start = '<a href="' . wp_nonce_url("user-edit.php?user_id={$this->user_to_edit->ID}", "ure_user_{$this->user_to_edit->ID}") . '" >'; $anchor_end = '</a>'; if (class_exists('user_switching') && current_user_can('switch_to_user', $this->user_to_edit->ID)) { $switch_to_user_link = user_switching::switch_to_url($this->user_to_edit); $switch_to_user = '******' . esc_url($switch_to_user_link) . '">' . esc_html__('Switch To', 'user-switching') . '</a>'; } } else { $anchor_start = ''; $anchor_end = ''; } $user_info = ' <span style="font-weight: bold;">' . $anchor_start . $this->user_to_edit->user_login; if ($this->user_to_edit->display_name !== $this->user_to_edit->user_login) { $user_info .= ' (' . $this->user_to_edit->display_name . ')'; } $user_info .= $anchor_end . '</span>'; if (is_multisite() && is_super_admin($this->user_to_edit->ID)) { $user_info .= ' <span style="font-weight: bold; color:red;">' . esc_html__('Network Super Admin', 'user-role-editor') . '</span>'; } if (!empty($switch_to_user)) { $user_info .= ' ' . $switch_to_user; } return $user_info; }
*/ if (!defined('URE_PLUGIN_URL')) { die; // Silence is golden, direct call is prohibited } $edit_user_caps_mode = $this->get_edit_user_caps_mode(); ?> <div class="has-sidebar-content"> <?php $switch_to_user = ''; if (!is_multisite() || current_user_can('manage_network_users')) { $anchor_start = '<a href="' . wp_nonce_url("user-edit.php?user_id={$this->user_to_edit->ID}", "ure_user_{$this->user_to_edit->ID}") . '" >'; $anchor_end = '</a>'; if (class_exists('user_switching') && current_user_can('switch_to_user', $this->user_to_edit->ID)) { $switch_to_user_link = user_switching::switch_to_url($this->user_to_edit); $switch_to_user = '******' . esc_url($switch_to_user_link) . '">' . esc_html__('Switch To', 'user-switching') . '</a>'; } } else { $anchor_start = ''; $anchor_end = ''; } $user_info = ' <span style="font-weight: bold;">' . $anchor_start . $this->user_to_edit->user_login; if ($this->user_to_edit->display_name !== $this->user_to_edit->user_login) { $user_info .= ' (' . $this->user_to_edit->display_name . ')'; } $user_info .= $anchor_end . '</span>'; if (is_multisite() && is_super_admin($this->user_to_edit->ID)) { $user_info .= ' <span style="font-weight: bold; color:red;">' . esc_html__('Network Super Admin', 'user-role-editor') . '</span>'; } if (!empty($switch_to_user)) {