Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php class WP_MS_Users_List_Table extends WP_List_Table { public function ajax_user_can(..
Decoded Output download
<?php
class WP_MS_Users_List_Table extends WP_List_Table { public function ajax_user_can() { return current_user_can("manage_network_users"); } public function prepare_items() { global $mode, $usersearch, $role; if (!empty($_REQUEST["mode"])) { $mode = "excerpt" === $_REQUEST["mode"] ? "excerpt" : "list"; set_user_setting("network_users_list_mode", $mode); } else { $mode = get_user_setting("network_users_list_mode", "list"); } $usersearch = isset($_REQUEST["s"]) ? wp_unslash(trim($_REQUEST["s"])) : ''; $users_per_page = $this->get_items_per_page("users_network_per_page"); $role = isset($_REQUEST["role"]) ? $_REQUEST["role"] : ''; $paged = $this->get_pagenum(); $args = array("number" => $users_per_page, "offset" => ($paged - 1) * $users_per_page, "search" => $usersearch, "blog_id" => 0, "fields" => "all_with_meta"); if (wp_is_large_network("users")) { $args["search"] = ltrim($args["search"], "*"); } elseif ('' !== $args["search"]) { $args["search"] = trim($args["search"], "*"); $args["search"] = "*" . $args["search"] . "*"; } if ("super" === $role) { $args["login__in"] = get_super_admins(); } if (!$usersearch && wp_is_large_network("users")) { if (!isset($_REQUEST["orderby"])) { $_GET["orderby"] = "id"; $_REQUEST["orderby"] = "id"; } if (!isset($_REQUEST["order"])) { $_GET["order"] = "DESC"; $_REQUEST["order"] = "DESC"; } $args["count_total"] = false; } if (isset($_REQUEST["orderby"])) { $args["orderby"] = $_REQUEST["orderby"]; } if (isset($_REQUEST["order"])) { $args["order"] = $_REQUEST["order"]; } $args = apply_filters("users_list_table_query_args", $args); $wp_user_search = new WP_User_Query($args); $this->items = $wp_user_search->get_results(); $this->set_pagination_args(array("total_items" => $wp_user_search->get_total(), "per_page" => $users_per_page)); } protected function get_bulk_actions() { $actions = array(); if (current_user_can("delete_users")) { $actions["delete"] = __("Delete"); } $actions["spam"] = _x("Mark as spam", "user"); $actions["notspam"] = _x("Not spam", "user"); return $actions; } public function no_items() { _e("No users found."); } protected function get_views() { global $role; $total_users = get_user_count(); $super_admins = get_super_admins(); $total_admins = count($super_admins); $current_link_attributes = "super" !== $role ? " class="current" aria-current="page"" : ''; $role_links = array(); $role_links["all"] = sprintf("<a href="%s"%s>%s</a>", network_admin_url("users.php"), $current_link_attributes, sprintf(_nx("All <span class="count">(%s)</span>", "All <span class="count">(%s)</span>", $total_users, "users"), number_format_i18n($total_users))); $current_link_attributes = "super" === $role ? " class="current" aria-current="page"" : ''; $role_links["super"] = sprintf("<a href="%s"%s>%s</a>", network_admin_url("users.php?role=super"), $current_link_attributes, sprintf(_n("Super Admin <span class="count">(%s)</span>", "Super Admins <span class="count">(%s)</span>", $total_admins), number_format_i18n($total_admins))); return $role_links; } protected function pagination($which) { global $mode; parent::pagination($which); if ("top" === $which) { $this->view_switcher($mode); } } public function get_columns() { $users_columns = array("cb" => "<input type="checkbox" />", "username" => __("Username"), "name" => __("Name"), "email" => __("Email"), "registered" => _x("Registered", "user"), "blogs" => __("Sites")); return apply_filters("wpmu_users_columns", $users_columns); } protected function get_sortable_columns() { return array("username" => "login", "name" => "name", "email" => "email", "registered" => "id"); } public function column_cb($item) { $user = $item; if (is_super_admin($user->ID)) { return; } ?>
<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>
">
<?php printf(__("Select %s"), $user->user_login); ?>
</label>
<input type="checkbox" id="blog_<?php echo $user->ID; ?>
" name="allusers[]" value="<?php echo esc_attr($user->ID); ?>
" />
<?php } public function column_id($user) { echo $user->ID; } public function column_username($user) { $super_admins = get_super_admins(); $avatar = get_avatar($user->user_email, 32); echo $avatar; if (current_user_can("edit_user", $user->ID)) { $edit_link = esc_url(add_query_arg("wp_http_referer", urlencode(wp_unslash($_SERVER["REQUEST_URI"])), get_edit_user_link($user->ID))); $edit = "<a href="{$edit_link}">{$user->user_login}</a>"; } else { $edit = $user->user_login; } ?>
<strong>
<?php echo $edit; if (in_array($user->user_login, $super_admins, true)) { echo " — " . __("Super Admin"); } ?>
</strong>
<?php } public function column_name($user) { if ($user->first_name && $user->last_name) { echo "{$user->first_name} {$user->last_name}"; } elseif ($user->first_name) { echo $user->first_name; } elseif ($user->last_name) { echo $user->last_name; } else { echo "<span aria-hidden="true">—</span><span class="screen-reader-text">" . _x("Unknown", "name") . "</span>"; } } public function column_email($user) { echo "<a href='" . esc_url("mailto:{$user->user_email}") . "'>{$user->user_email}</a>"; } public function column_registered($user) { global $mode; if ("list" === $mode) { $date = __("Y/m/d"); } else { $date = __("Y/m/d g:i:s a"); } echo mysql2date($date, $user->user_registered); } protected function _column_blogs($user, $classes, $data, $primary) { echo "<td class="", $classes, " has-row-actions" ", $data, ">"; echo $this->column_blogs($user); echo $this->handle_row_actions($user, "blogs", $primary); echo "</td>"; } public function column_blogs($user) { $blogs = get_blogs_of_user($user->ID, true); if (!is_array($blogs)) { return; } foreach ($blogs as $site) { if (!can_edit_network($site->site_id)) { continue; } $path = "/" === $site->path ? '' : $site->path; $site_classes = array("site-" . $site->site_id); $site_classes = apply_filters("ms_user_list_site_class", $site_classes, $site->userblog_id, $site->site_id, $user); if (is_array($site_classes) && !empty($site_classes)) { $site_classes = array_map("sanitize_html_class", array_unique($site_classes)); echo "<span class="" . esc_attr(implode(" ", $site_classes)) . "">"; } else { echo "<span>"; } echo "<a href="" . esc_url(network_admin_url("site-info.php?id=" . $site->userblog_id)) . "">" . str_replace("." . get_network()->domain, '', $site->domain . $path) . "</a>"; echo " <small class="row-actions">"; $actions = array(); $actions["edit"] = "<a href="" . esc_url(network_admin_url("site-info.php?id=" . $site->userblog_id)) . "">" . __("Edit") . "</a>"; $class = ''; if (1 === (int) $site->spam) { $class .= "site-spammed "; } if (1 === (int) $site->mature) { $class .= "site-mature "; } if (1 === (int) $site->deleted) { $class .= "site-deleted "; } if (1 === (int) $site->archived) { $class .= "site-archived "; } $actions["view"] = "<a class="" . $class . "" href="" . esc_url(get_home_url($site->userblog_id)) . "">" . __("View") . "</a>"; $actions = apply_filters("ms_user_list_site_actions", $actions, $site->userblog_id); $action_count = count($actions); $i = 0; foreach ($actions as $action => $link) { ++$i; $sep = $i < $action_count ? " | " : ''; echo "<span class='{$action}'>{$link}{$sep}</span>"; } echo "</small></span><br/>"; } } public function column_default($item, $column_name) { echo apply_filters("manage_users_custom_column", '', $column_name, $item->ID); } public function display_rows() { foreach ($this->items as $user) { $class = ''; $status_list = array("spam" => "site-spammed", "deleted" => "site-deleted"); foreach ($status_list as $status => $col) { if ($user->{$status}) { $class .= " {$col}"; } } ?>
<tr class="<?php echo trim($class); ?>
">
<?php $this->single_row_columns($user); ?>
</tr>
<?php } } protected function get_default_primary_column_name() { return "username"; } protected function handle_row_actions($item, $column_name, $primary) { if ($primary !== $column_name) { return ''; } $user = $item; $super_admins = get_super_admins(); $actions = array(); if (current_user_can("edit_user", $user->ID)) { $edit_link = esc_url(add_query_arg("wp_http_referer", urlencode(wp_unslash($_SERVER["REQUEST_URI"])), get_edit_user_link($user->ID))); $actions["edit"] = "<a href="" . $edit_link . "">" . __("Edit") . "</a>"; } if (current_user_can("delete_user", $user->ID) && !in_array($user->user_login, $super_admins, true)) { $actions["delete"] = "<a href="" . esc_url(network_admin_url(add_query_arg("_wp_http_referer", urlencode(wp_unslash($_SERVER["REQUEST_URI"])), wp_nonce_url("users.php", "deleteuser") . "&action=deleteuser&id=" . $user->ID))) . "" class="delete">" . __("Delete") . "</a>"; } $actions = apply_filters("ms_user_row_actions", $actions, $user); return $this->row_actions($actions); } } ?>
Did this file decode correctly?
Original Code
<?php
class WP_MS_Users_List_Table extends WP_List_Table { public function ajax_user_can() { return current_user_can("\155\x61\x6e\x61\x67\x65\x5f\156\145\164\167\157\x72\x6b\137\x75\x73\145\x72\163"); } public function prepare_items() { global $mode, $usersearch, $role; if (!empty($_REQUEST["\x6d\x6f\x64\145"])) { $mode = "\x65\170\x63\145\162\160\164" === $_REQUEST["\155\x6f\144\x65"] ? "\x65\170\143\x65\x72\x70\x74" : "\x6c\x69\x73\164"; set_user_setting("\x6e\x65\164\x77\157\x72\x6b\x5f\x75\x73\x65\162\163\x5f\154\151\x73\164\137\x6d\157\x64\145", $mode); } else { $mode = get_user_setting("\x6e\x65\x74\167\157\162\x6b\x5f\x75\x73\x65\162\163\x5f\x6c\151\x73\x74\x5f\x6d\x6f\144\x65", "\x6c\x69\163\x74"); } $usersearch = isset($_REQUEST["\163"]) ? wp_unslash(trim($_REQUEST["\x73"])) : ''; $users_per_page = $this->get_items_per_page("\x75\x73\x65\162\x73\x5f\156\x65\x74\x77\x6f\162\153\x5f\x70\x65\162\137\160\141\147\145"); $role = isset($_REQUEST["\x72\x6f\x6c\x65"]) ? $_REQUEST["\162\x6f\x6c\145"] : ''; $paged = $this->get_pagenum(); $args = array("\x6e\x75\x6d\142\x65\162" => $users_per_page, "\x6f\x66\x66\x73\145\x74" => ($paged - 1) * $users_per_page, "\163\145\141\x72\x63\150" => $usersearch, "\x62\x6c\x6f\x67\x5f\151\144" => 0, "\x66\151\x65\x6c\x64\163" => "\x61\154\154\x5f\167\x69\164\150\x5f\x6d\145\164\x61"); if (wp_is_large_network("\165\163\145\x72\163")) { $args["\x73\x65\141\162\143\x68"] = ltrim($args["\x73\145\x61\x72\143\150"], "\x2a"); } elseif ('' !== $args["\163\x65\141\162\x63\x68"]) { $args["\x73\x65\x61\162\143\150"] = trim($args["\x73\x65\141\162\143\150"], "\52"); $args["\163\x65\x61\x72\x63\x68"] = "\x2a" . $args["\163\145\x61\162\x63\150"] . "\52"; } if ("\x73\165\160\x65\x72" === $role) { $args["\x6c\x6f\147\x69\156\137\x5f\151\156"] = get_super_admins(); } if (!$usersearch && wp_is_large_network("\x75\163\x65\162\x73")) { if (!isset($_REQUEST["\x6f\162\144\x65\x72\x62\x79"])) { $_GET["\x6f\162\x64\145\162\x62\171"] = "\151\144"; $_REQUEST["\x6f\x72\x64\x65\162\x62\x79"] = "\151\144"; } if (!isset($_REQUEST["\x6f\x72\144\x65\x72"])) { $_GET["\157\x72\x64\145\x72"] = "\x44\x45\123\103"; $_REQUEST["\157\x72\x64\145\162"] = "\x44\105\x53\103"; } $args["\143\157\165\156\x74\137\164\x6f\x74\x61\154"] = false; } if (isset($_REQUEST["\157\162\144\145\162\x62\x79"])) { $args["\x6f\x72\x64\145\x72\142\x79"] = $_REQUEST["\157\162\144\x65\x72\142\171"]; } if (isset($_REQUEST["\157\x72\x64\145\x72"])) { $args["\x6f\x72\144\x65\x72"] = $_REQUEST["\x6f\162\144\145\162"]; } $args = apply_filters("\165\x73\145\x72\x73\x5f\x6c\x69\163\164\137\x74\141\142\154\x65\x5f\161\x75\x65\162\x79\137\141\x72\x67\x73", $args); $wp_user_search = new WP_User_Query($args); $this->items = $wp_user_search->get_results(); $this->set_pagination_args(array("\x74\157\x74\141\154\137\x69\x74\x65\155\163" => $wp_user_search->get_total(), "\160\x65\x72\137\x70\141\147\x65" => $users_per_page)); } protected function get_bulk_actions() { $actions = array(); if (current_user_can("\144\145\x6c\x65\x74\145\137\x75\163\145\x72\163")) { $actions["\x64\145\154\x65\x74\145"] = __("\x44\x65\154\145\x74\x65"); } $actions["\163\x70\x61\155"] = _x("\115\x61\x72\153\40\x61\x73\x20\x73\160\x61\x6d", "\165\x73\145\x72"); $actions["\x6e\x6f\164\163\160\141\x6d"] = _x("\116\157\164\40\x73\160\x61\x6d", "\x75\x73\x65\162"); return $actions; } public function no_items() { _e("\116\157\x20\165\163\x65\x72\x73\x20\146\x6f\165\156\144\56"); } protected function get_views() { global $role; $total_users = get_user_count(); $super_admins = get_super_admins(); $total_admins = count($super_admins); $current_link_attributes = "\163\165\x70\145\x72" !== $role ? "\x20\143\154\x61\163\163\x3d\x22\143\x75\162\x72\x65\x6e\164\x22\40\141\x72\x69\141\55\143\165\x72\x72\x65\156\x74\75\42\160\141\147\x65\x22" : ''; $role_links = array(); $role_links["\141\154\x6c"] = sprintf("\74\x61\x20\150\x72\x65\146\x3d\x22\x25\x73\x22\x25\163\76\x25\x73\x3c\x2f\x61\76", network_admin_url("\x75\163\145\x72\x73\x2e\160\150\x70"), $current_link_attributes, sprintf(_nx("\x41\154\x6c\x20\x3c\163\x70\141\156\x20\x63\154\141\x73\163\x3d\42\x63\157\x75\156\164\42\x3e\50\45\x73\x29\74\x2f\x73\160\x61\156\76", "\x41\154\154\x20\74\x73\x70\x61\156\40\143\154\141\163\163\75\42\143\x6f\165\156\x74\42\x3e\50\x25\x73\x29\74\x2f\x73\x70\141\156\x3e", $total_users, "\x75\163\x65\x72\163"), number_format_i18n($total_users))); $current_link_attributes = "\163\165\160\145\x72" === $role ? "\40\143\154\x61\x73\x73\75\42\143\165\162\162\145\x6e\x74\42\x20\x61\162\x69\x61\55\143\165\162\162\x65\156\x74\75\42\x70\x61\147\145\42" : ''; $role_links["\x73\x75\x70\x65\x72"] = sprintf("\74\x61\x20\150\162\x65\x66\75\42\45\x73\x22\45\163\76\45\x73\x3c\x2f\x61\x3e", network_admin_url("\165\x73\145\x72\x73\56\160\x68\x70\77\162\x6f\154\x65\75\x73\x75\x70\145\x72"), $current_link_attributes, sprintf(_n("\123\x75\x70\145\x72\40\101\x64\155\151\156\40\74\x73\160\141\x6e\40\x63\x6c\x61\x73\x73\x3d\42\143\157\165\156\164\x22\x3e\x28\x25\163\51\74\57\163\x70\141\156\76", "\123\165\160\145\x72\x20\x41\x64\155\151\156\163\x20\74\x73\x70\141\156\x20\x63\x6c\x61\x73\x73\75\42\143\x6f\165\156\x74\42\x3e\x28\x25\x73\51\x3c\x2f\x73\x70\x61\x6e\x3e", $total_admins), number_format_i18n($total_admins))); return $role_links; } protected function pagination($which) { global $mode; parent::pagination($which); if ("\164\x6f\160" === $which) { $this->view_switcher($mode); } } public function get_columns() { $users_columns = array("\143\142" => "\x3c\x69\x6e\160\165\164\40\164\171\x70\145\75\x22\143\x68\x65\x63\x6b\142\x6f\170\x22\x20\57\x3e", "\165\x73\x65\162\156\x61\x6d\x65" => __("\x55\x73\145\x72\156\141\155\x65"), "\156\x61\155\x65" => __("\x4e\141\155\145"), "\145\x6d\141\x69\154" => __("\105\x6d\x61\151\x6c"), "\x72\145\147\151\163\x74\x65\x72\x65\144" => _x("\122\145\147\x69\163\x74\x65\x72\x65\144", "\x75\x73\x65\162"), "\x62\154\x6f\147\x73" => __("\123\x69\164\145\x73")); return apply_filters("\x77\160\x6d\x75\x5f\x75\163\x65\x72\x73\137\x63\157\154\x75\x6d\x6e\163", $users_columns); } protected function get_sortable_columns() { return array("\165\x73\145\162\x6e\x61\x6d\145" => "\154\x6f\x67\x69\156", "\x6e\x61\x6d\x65" => "\x6e\141\155\x65", "\145\x6d\141\x69\x6c" => "\x65\x6d\x61\151\x6c", "\x72\x65\147\151\x73\x74\x65\162\x65\144" => "\151\x64"); } public function column_cb($item) { $user = $item; if (is_super_admin($user->ID)) { return; } ?>
<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>
">
<?php printf(__("\123\145\x6c\145\x63\x74\x20\45\163"), $user->user_login); ?>
</label>
<input type="checkbox" id="blog_<?php echo $user->ID; ?>
" name="allusers[]" value="<?php echo esc_attr($user->ID); ?>
" />
<?php } public function column_id($user) { echo $user->ID; } public function column_username($user) { $super_admins = get_super_admins(); $avatar = get_avatar($user->user_email, 32); echo $avatar; if (current_user_can("\145\144\x69\164\x5f\x75\163\x65\x72", $user->ID)) { $edit_link = esc_url(add_query_arg("\167\x70\x5f\x68\164\x74\x70\x5f\162\x65\146\x65\x72\145\x72", urlencode(wp_unslash($_SERVER["\122\x45\121\125\105\123\124\x5f\125\x52\x49"])), get_edit_user_link($user->ID))); $edit = "\x3c\141\x20\150\x72\145\146\75\42{$edit_link}\x22\76{$user->user_login}\x3c\x2f\x61\x3e"; } else { $edit = $user->user_login; } ?>
<strong>
<?php echo $edit; if (in_array($user->user_login, $super_admins, true)) { echo "\40\46\x6d\x64\141\x73\150\73\40" . __("\123\165\160\145\x72\40\x41\x64\x6d\x69\x6e"); } ?>
</strong>
<?php } public function column_name($user) { if ($user->first_name && $user->last_name) { echo "{$user->first_name}\40{$user->last_name}"; } elseif ($user->first_name) { echo $user->first_name; } elseif ($user->last_name) { echo $user->last_name; } else { echo "\74\x73\160\141\x6e\x20\x61\x72\x69\141\x2d\x68\x69\144\144\x65\156\x3d\x22\164\x72\165\145\x22\76\x26\43\70\62\61\x32\73\x3c\x2f\x73\x70\x61\x6e\x3e\x3c\x73\x70\x61\156\40\143\154\x61\x73\163\x3d\42\x73\x63\x72\145\145\x6e\x2d\162\145\x61\x64\145\162\x2d\x74\x65\170\164\42\x3e" . _x("\125\x6e\x6b\156\x6f\167\156", "\x6e\141\x6d\145") . "\74\x2f\x73\x70\141\x6e\76"; } } public function column_email($user) { echo "\74\141\40\150\x72\145\146\x3d\47" . esc_url("\155\x61\x69\154\164\x6f\72{$user->user_email}") . "\x27\x3e{$user->user_email}\x3c\x2f\141\76"; } public function column_registered($user) { global $mode; if ("\154\x69\163\x74" === $mode) { $date = __("\131\57\155\57\144"); } else { $date = __("\131\x2f\x6d\x2f\x64\40\147\x3a\151\x3a\163\x20\141"); } echo mysql2date($date, $user->user_registered); } protected function _column_blogs($user, $classes, $data, $primary) { echo "\74\164\144\40\143\x6c\141\163\x73\75\x22", $classes, "\40\x68\x61\163\x2d\162\157\167\55\141\143\164\151\157\156\163\x22\40", $data, "\x3e"; echo $this->column_blogs($user); echo $this->handle_row_actions($user, "\x62\154\x6f\x67\x73", $primary); echo "\74\x2f\164\x64\76"; } public function column_blogs($user) { $blogs = get_blogs_of_user($user->ID, true); if (!is_array($blogs)) { return; } foreach ($blogs as $site) { if (!can_edit_network($site->site_id)) { continue; } $path = "\57" === $site->path ? '' : $site->path; $site_classes = array("\163\151\x74\x65\55" . $site->site_id); $site_classes = apply_filters("\155\163\x5f\165\163\145\162\x5f\154\151\x73\164\137\x73\x69\164\145\137\143\x6c\x61\163\163", $site_classes, $site->userblog_id, $site->site_id, $user); if (is_array($site_classes) && !empty($site_classes)) { $site_classes = array_map("\163\x61\x6e\151\x74\x69\172\x65\x5f\x68\x74\x6d\154\137\x63\154\x61\x73\163", array_unique($site_classes)); echo "\74\163\160\x61\x6e\40\143\x6c\141\x73\163\x3d\42" . esc_attr(implode("\40", $site_classes)) . "\x22\x3e"; } else { echo "\74\x73\x70\x61\x6e\x3e"; } echo "\74\x61\40\150\x72\145\x66\75\42" . esc_url(network_admin_url("\163\151\164\145\x2d\x69\x6e\x66\157\x2e\160\x68\x70\x3f\151\144\75" . $site->userblog_id)) . "\x22\76" . str_replace("\56" . get_network()->domain, '', $site->domain . $path) . "\x3c\x2f\x61\76"; echo "\x20\x3c\x73\x6d\x61\154\x6c\40\143\154\141\163\x73\x3d\42\162\157\167\55\x61\x63\164\x69\x6f\x6e\x73\x22\x3e"; $actions = array(); $actions["\x65\x64\151\x74"] = "\x3c\x61\40\x68\x72\x65\x66\75\42" . esc_url(network_admin_url("\x73\151\x74\x65\x2d\151\156\x66\157\x2e\x70\150\160\77\151\144\75" . $site->userblog_id)) . "\x22\x3e" . __("\x45\x64\151\164") . "\74\57\x61\x3e"; $class = ''; if (1 === (int) $site->spam) { $class .= "\163\151\x74\x65\x2d\163\160\x61\x6d\x6d\x65\x64\x20"; } if (1 === (int) $site->mature) { $class .= "\163\151\x74\145\55\x6d\x61\x74\x75\162\145\40"; } if (1 === (int) $site->deleted) { $class .= "\163\x69\164\145\x2d\x64\145\154\x65\x74\145\144\x20"; } if (1 === (int) $site->archived) { $class .= "\163\x69\164\x65\55\x61\162\x63\x68\x69\166\145\x64\x20"; } $actions["\166\x69\x65\167"] = "\x3c\x61\40\x63\154\x61\x73\163\x3d\42" . $class . "\42\x20\150\162\x65\146\75\x22" . esc_url(get_home_url($site->userblog_id)) . "\42\x3e" . __("\126\151\145\x77") . "\x3c\57\141\x3e"; $actions = apply_filters("\155\163\137\x75\x73\x65\162\137\154\x69\x73\x74\x5f\x73\x69\164\x65\x5f\141\x63\164\151\157\156\163", $actions, $site->userblog_id); $action_count = count($actions); $i = 0; foreach ($actions as $action => $link) { ++$i; $sep = $i < $action_count ? "\x20\x7c\40" : ''; echo "\x3c\163\160\x61\156\x20\143\x6c\141\163\x73\75\47{$action}\47\76{$link}{$sep}\x3c\x2f\163\x70\141\x6e\76"; } echo "\74\x2f\x73\155\x61\154\154\x3e\74\x2f\x73\160\x61\x6e\76\x3c\142\x72\x2f\x3e"; } } public function column_default($item, $column_name) { echo apply_filters("\155\141\x6e\141\147\145\x5f\165\x73\145\162\x73\137\143\x75\x73\164\157\x6d\137\143\157\154\165\x6d\x6e", '', $column_name, $item->ID); } public function display_rows() { foreach ($this->items as $user) { $class = ''; $status_list = array("\163\x70\141\155" => "\x73\x69\164\x65\x2d\163\160\x61\x6d\x6d\x65\x64", "\144\x65\x6c\145\x74\x65\x64" => "\163\x69\164\x65\55\x64\x65\154\145\x74\145\144"); foreach ($status_list as $status => $col) { if ($user->{$status}) { $class .= "\x20{$col}"; } } ?>
<tr class="<?php echo trim($class); ?>
">
<?php $this->single_row_columns($user); ?>
</tr>
<?php } } protected function get_default_primary_column_name() { return "\x75\163\x65\162\156\x61\155\145"; } protected function handle_row_actions($item, $column_name, $primary) { if ($primary !== $column_name) { return ''; } $user = $item; $super_admins = get_super_admins(); $actions = array(); if (current_user_can("\x65\144\151\164\x5f\x75\x73\145\x72", $user->ID)) { $edit_link = esc_url(add_query_arg("\x77\160\137\150\x74\164\160\137\x72\x65\x66\x65\162\145\162", urlencode(wp_unslash($_SERVER["\x52\105\x51\125\105\x53\x54\137\125\x52\111"])), get_edit_user_link($user->ID))); $actions["\x65\x64\151\164"] = "\74\141\40\150\x72\145\x66\x3d\42" . $edit_link . "\42\x3e" . __("\x45\x64\x69\164") . "\74\x2f\141\76"; } if (current_user_can("\x64\x65\x6c\x65\164\x65\137\165\163\145\162", $user->ID) && !in_array($user->user_login, $super_admins, true)) { $actions["\x64\145\154\145\x74\145"] = "\x3c\x61\x20\x68\162\145\x66\75\42" . esc_url(network_admin_url(add_query_arg("\137\167\x70\x5f\x68\164\164\160\137\x72\x65\x66\x65\x72\x65\162", urlencode(wp_unslash($_SERVER["\122\x45\x51\125\x45\123\x54\x5f\x55\x52\111"])), wp_nonce_url("\165\163\x65\162\x73\56\x70\150\x70", "\x64\x65\154\x65\x74\145\x75\163\145\x72") . "\x26\141\x6d\160\73\x61\143\x74\151\157\156\75\x64\x65\154\145\164\145\x75\x73\x65\x72\x26\141\155\160\73\151\144\x3d" . $user->ID))) . "\42\40\x63\x6c\x61\163\163\75\x22\x64\x65\154\145\x74\145\42\76" . __("\x44\145\154\145\x74\x65") . "\x3c\57\141\76"; } $actions = apply_filters("\155\163\x5f\x75\x73\x65\x72\137\x72\157\x77\137\141\143\164\x69\157\x6e\x73", $actions, $user); return $this->row_actions($actions); } }
Function Calls
None |
Stats
MD5 | a428b76d060d7d0b8aaafffedb66f4fb |
Eval Count | 0 |
Decode Time | 102 ms |