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_Terms_List_Table extends WP_List_Table { public $callback_args; private $l..

Decoded Output download

<?php
 class WP_Terms_List_Table extends WP_List_Table { public $callback_args; private $level; public function __construct($args = array()) { global $post_type, $taxonomy, $action, $tax; parent::__construct(array("plural" => "tags", "singular" => "tag", "screen" => isset($args["screen"]) ? $args["screen"] : null)); $action = $this->screen->action; $post_type = $this->screen->post_type; $taxonomy = $this->screen->taxonomy; if (empty($taxonomy)) { $taxonomy = "post_tag"; } if (!taxonomy_exists($taxonomy)) { wp_die(__("Invalid taxonomy")); } $tax = get_taxonomy($taxonomy); if (empty($post_type) || !in_array($post_type, get_post_types(array("show_ui" => true)))) { $post_type = "post"; } } public function ajax_user_can() { return current_user_can(get_taxonomy($this->screen->taxonomy)->cap->manage_terms); } public function prepare_items() { $tags_per_page = $this->get_items_per_page("edit_" . $this->screen->taxonomy . "_per_page"); if ("post_tag" === $this->screen->taxonomy) { $tags_per_page = apply_filters("edit_tags_per_page", $tags_per_page); $tags_per_page = apply_filters("tagsperpage", $tags_per_page); } elseif ("category" === $this->screen->taxonomy) { $tags_per_page = apply_filters("edit_categories_per_page", $tags_per_page); } $search = !empty($_REQUEST["s"]) ? trim(wp_unslash($_REQUEST["s"])) : ''; $args = array("search" => $search, "page" => $this->get_pagenum(), "number" => $tags_per_page); if (!empty($_REQUEST["orderby"])) { $args["orderby"] = trim(wp_unslash($_REQUEST["orderby"])); } if (!empty($_REQUEST["order"])) { $args["order"] = trim(wp_unslash($_REQUEST["order"])); } $this->callback_args = $args; $this->set_pagination_args(array("total_items" => wp_count_terms($this->screen->taxonomy, compact("search")), "per_page" => $tags_per_page)); } public function has_items() { return true; } public function no_items() { echo get_taxonomy($this->screen->taxonomy)->labels->not_found; } protected function get_bulk_actions() { $actions = array(); $actions["delete"] = __("Delete"); return $actions; } public function current_action() { if (isset($_REQUEST["action"]) && isset($_REQUEST["delete_tags"]) && ("delete" === $_REQUEST["action"] || "delete" === $_REQUEST["action2"])) { return "bulk-delete"; } return parent::current_action(); } public function get_columns() { $columns = array("cb" => "<input type="checkbox" />", "name" => _x("Name", "term name"), "description" => __("Description"), "slug" => __("Slug")); if ("link_category" === $this->screen->taxonomy) { $columns["links"] = __("Links"); } else { $columns["posts"] = _x("Count", "Number/count of items"); } return $columns; } protected function get_sortable_columns() { return array("name" => "name", "description" => "description", "slug" => "slug", "posts" => "count", "links" => "count"); } public function display_rows_or_placeholder() { $taxonomy = $this->screen->taxonomy; $args = wp_parse_args($this->callback_args, array("page" => 1, "number" => 20, "search" => '', "hide_empty" => 0)); $page = $args["page"]; $number = $args["number"]; $args["offset"] = $offset = ($page - 1) * $number; $count = 0; if (is_taxonomy_hierarchical($taxonomy) && !isset($args["orderby"])) { $args["number"] = $args["offset"] = 0; } $terms = get_terms($taxonomy, $args); if (empty($terms) || !is_array($terms)) { echo "<tr class="no-items"><td class="colspanchange" colspan="" . $this->get_column_count() . "">"; $this->no_items(); echo "</td></tr>"; return; } if (is_taxonomy_hierarchical($taxonomy) && !isset($args["orderby"])) { if (!empty($args["search"])) { $children = array(); } else { $children = _get_term_hierarchy($taxonomy); } $this->_rows($taxonomy, $terms, $children, $offset, $number, $count); } else { foreach ($terms as $term) { $this->single_row($term); } } } private function _rows($taxonomy, $terms, &$children, $start, $per_page, &$count, $parent = 0, $level = 0) { $end = $start + $per_page; foreach ($terms as $key => $term) { if ($count >= $end) { break; } if ($term->parent != $parent && empty($_REQUEST["s"])) { continue; } if ($count == $start && $term->parent > 0 && empty($_REQUEST["s"])) { $my_parents = $parent_ids = array(); $p = $term->parent; while ($p) { $my_parent = get_term($p, $taxonomy); $my_parents[] = $my_parent; $p = $my_parent->parent; if (in_array($p, $parent_ids)) { break; } $parent_ids[] = $p; } unset($parent_ids); $num_parents = count($my_parents); while ($my_parent = array_pop($my_parents)) { echo "\x9"; $this->single_row($my_parent, $level - $num_parents); $num_parents--; } } if ($count >= $start) { echo "\x9"; $this->single_row($term, $level); } ++$count; unset($terms[$key]); if (isset($children[$term->term_id]) && empty($_REQUEST["s"])) { $this->_rows($taxonomy, $terms, $children, $start, $per_page, $count, $term->term_id, $level + 1); } } } public function single_row($tag, $level = 0) { global $taxonomy; $tag = sanitize_term($tag, $taxonomy); $this->level = $level; echo "<tr id="tag-" . $tag->term_id . "">"; $this->single_row_columns($tag); echo "</tr>"; } public function column_cb($tag) { $default_term = get_option("default_" . $this->screen->taxonomy); if (current_user_can(get_taxonomy($this->screen->taxonomy)->cap->delete_terms) && $tag->term_id != $default_term) { return "<label class="screen-reader-text" for="cb-select-" . $tag->term_id . "">" . sprintf(__("Select %s"), $tag->name) . "</label>" . "<input type="checkbox" name="delete_tags[]" value="" . $tag->term_id . "" id="cb-select-" . $tag->term_id . "" />"; } return "&nbsp;"; } public function column_name($tag) { $taxonomy = $this->screen->taxonomy; $pad = str_repeat("&#8212; ", max(0, $this->level)); $name = apply_filters("term_name", $pad . " " . $tag->name, $tag); $qe_data = get_term($tag->term_id, $taxonomy, OBJECT, "edit"); $uri = defined("DOING_AJAX") && DOING_AJAX ? wp_get_referer() : $_SERVER["REQUEST_URI"]; $edit_link = add_query_arg("wp_http_referer", urlencode(wp_unslash($uri)), get_edit_term_link($tag->term_id, $taxonomy, $this->screen->post_type)); $out = "<strong><a class="row-title" href="" . esc_url($edit_link) . "" title="" . esc_attr(sprintf(__("Edit &#8220;%s&#8221;"), $name)) . "">" . $name . "</a></strong><br />"; $out .= "<div class="hidden" id="inline_" . $qe_data->term_id . "">"; $out .= "<div class="name">" . $qe_data->name . "</div>"; $out .= "<div class="slug">" . apply_filters("editable_slug", $qe_data->slug, $qe_data) . "</div>"; $out .= "<div class="parent">" . $qe_data->parent . "</div></div>"; return $out; } protected function get_default_primary_column_name() { return "name"; } protected function handle_row_actions($tag, $column_name, $primary) { if ($primary !== $column_name) { return ''; } $taxonomy = $this->screen->taxonomy; $tax = get_taxonomy($taxonomy); $default_term = get_option("default_" . $taxonomy); $uri = defined("DOING_AJAX") && DOING_AJAX ? wp_get_referer() : $_SERVER["REQUEST_URI"]; $edit_link = add_query_arg("wp_http_referer", urlencode(wp_unslash($uri)), get_edit_term_link($tag->term_id, $taxonomy, $this->screen->post_type)); $actions = array(); if (current_user_can($tax->cap->edit_terms)) { $actions["edit"] = "<a href="" . esc_url($edit_link) . "">" . __("Edit") . "</a>"; $actions["inline hide-if-no-js"] = "<a href="#" class="editinline">" . __("Quick&nbsp;Edit") . "</a>"; } if (current_user_can($tax->cap->delete_terms) && $tag->term_id != $default_term) { $actions["delete"] = "<a class='delete-tag' href='" . wp_nonce_url("edit-tags.php?action=delete&amp;taxonomy={$taxonomy}&amp;tag_ID={$tag->term_id}", "delete-tag_" . $tag->term_id) . "'>" . __("Delete") . "</a>"; } if ($tax->public) { $actions["view"] = "<a href="" . get_term_link($tag) . "">" . __("View") . "</a>"; } $actions = apply_filters("tag_row_actions", $actions, $tag); $actions = apply_filters("{$taxonomy}_row_actions", $actions, $tag); return $this->row_actions($actions); } public function column_description($tag) { return $tag->description; } public function column_slug($tag) { return apply_filters("editable_slug", $tag->slug, $tag); } public function column_posts($tag) { $count = number_format_i18n($tag->count); $tax = get_taxonomy($this->screen->taxonomy); $ptype_object = get_post_type_object($this->screen->post_type); if (!$ptype_object->show_ui) { return $count; } if ($tax->query_var) { $args = array($tax->query_var => $tag->slug); } else { $args = array("taxonomy" => $tax->name, "term" => $tag->slug); } if ("post" != $this->screen->post_type) { $args["post_type"] = $this->screen->post_type; } if ("attachment" === $this->screen->post_type) { return "<a href='" . esc_url(add_query_arg($args, "upload.php")) . "'>{$count}</a>"; } return "<a href='" . esc_url(add_query_arg($args, "edit.php")) . "'>{$count}</a>"; } public function column_links($tag) { $count = number_format_i18n($tag->count); if ($count) { $count = "<a href='link-manager.php?cat_id={$tag->term_id}'>{$count}</a>"; } return $count; } public function column_default($tag, $column_name) { return apply_filters("manage_{$this->screen->taxonomy}_custom_column", '', $column_name, $tag->term_id); } public function inline_edit() { $tax = get_taxonomy($this->screen->taxonomy); if (!current_user_can($tax->cap->edit_terms)) { return; } ?>

	<form method="get"><table style="display: none"><tbody id="inlineedit">
		<tr id="inline-edit" class="inline-edit-row" style="display: none"><td colspan="<?php  echo $this->get_column_count(); ?>
" class="colspanchange">

			<fieldset>
				<legend class="inline-edit-legend"><?php  _e("Quick Edit"); ?>
</legend>
				<div class="inline-edit-col">
				<label>
					<span class="title"><?php  _ex("Name", "term name"); ?>
</span>
					<span class="input-text-wrap"><input type="text" name="name" class="ptitle" value="" /></span>
				</label>
	<?php  if (!global_terms_enabled()) { ?>
				<label>
					<span class="title"><?php  _e("Slug"); ?>
</span>
					<span class="input-text-wrap"><input type="text" name="slug" class="ptitle" value="" /></span>
				</label>
	<?php  } ?>
			</div></fieldset>
	<?php  $core_columns = array("cb" => true, "description" => true, "name" => true, "slug" => true, "posts" => true); list($columns) = $this->get_column_info(); foreach ($columns as $column_name => $column_display_name) { if (isset($core_columns[$column_name])) { continue; } do_action("quick_edit_custom_box", $column_name, "edit-tags", $this->screen->taxonomy); } ?>

		<p class="inline-edit-save submit">
			<button type="button" class="cancel button-secondary alignleft"><?php  _e("Cancel"); ?>
</button>
			<button type="button" class="save button-primary alignright"><?php  echo $tax->labels->update_item; ?>
</button>
			<span class="spinner"></span>
			<span class="error" style="display:none;"></span>
			<?php  wp_nonce_field("taxinlineeditnonce", "_inline_edit", false); ?>
			<input type="hidden" name="taxonomy" value="<?php  echo esc_attr($this->screen->taxonomy); ?>
" />
			<input type="hidden" name="post_type" value="<?php  echo esc_attr($this->screen->post_type); ?>
" />
			<br class="clear" />
		</p>
		</td></tr>
		</tbody></table></form>
	<?php  } } ?>

Did this file decode correctly?

Original Code

<?php
 class WP_Terms_List_Table extends WP_List_Table { public $callback_args; private $level; public function __construct($args = array()) { global $post_type, $taxonomy, $action, $tax; parent::__construct(array("\x70\x6c\x75\x72\141\154" => "\164\141\147\x73", "\163\151\156\x67\165\x6c\x61\x72" => "\x74\141\147", "\x73\143\x72\x65\x65\x6e" => isset($args["\x73\x63\x72\145\145\x6e"]) ? $args["\x73\x63\x72\x65\x65\156"] : null)); $action = $this->screen->action; $post_type = $this->screen->post_type; $taxonomy = $this->screen->taxonomy; if (empty($taxonomy)) { $taxonomy = "\160\x6f\163\164\137\x74\x61\x67"; } if (!taxonomy_exists($taxonomy)) { wp_die(__("\111\x6e\x76\141\154\151\x64\40\164\141\x78\x6f\156\x6f\155\x79")); } $tax = get_taxonomy($taxonomy); if (empty($post_type) || !in_array($post_type, get_post_types(array("\x73\150\x6f\x77\x5f\165\x69" => true)))) { $post_type = "\x70\x6f\163\164"; } } public function ajax_user_can() { return current_user_can(get_taxonomy($this->screen->taxonomy)->cap->manage_terms); } public function prepare_items() { $tags_per_page = $this->get_items_per_page("\x65\x64\151\164\137" . $this->screen->taxonomy . "\x5f\x70\145\x72\137\x70\x61\x67\145"); if ("\160\157\163\164\x5f\x74\141\x67" === $this->screen->taxonomy) { $tags_per_page = apply_filters("\x65\144\x69\x74\137\164\x61\x67\163\137\160\x65\x72\x5f\x70\x61\147\x65", $tags_per_page); $tags_per_page = apply_filters("\x74\x61\147\163\160\x65\162\x70\x61\147\145", $tags_per_page); } elseif ("\143\x61\x74\145\147\157\162\171" === $this->screen->taxonomy) { $tags_per_page = apply_filters("\145\144\151\x74\x5f\x63\141\x74\145\x67\x6f\162\x69\x65\x73\x5f\x70\145\162\x5f\160\x61\x67\145", $tags_per_page); } $search = !empty($_REQUEST["\163"]) ? trim(wp_unslash($_REQUEST["\163"])) : ''; $args = array("\x73\x65\141\162\x63\x68" => $search, "\160\141\x67\x65" => $this->get_pagenum(), "\x6e\x75\x6d\142\x65\162" => $tags_per_page); if (!empty($_REQUEST["\157\x72\144\x65\x72\x62\x79"])) { $args["\157\162\144\x65\162\142\x79"] = trim(wp_unslash($_REQUEST["\x6f\162\144\x65\162\142\171"])); } if (!empty($_REQUEST["\x6f\x72\144\145\x72"])) { $args["\x6f\x72\144\x65\x72"] = trim(wp_unslash($_REQUEST["\157\x72\x64\145\162"])); } $this->callback_args = $args; $this->set_pagination_args(array("\x74\x6f\164\141\154\137\x69\x74\145\x6d\x73" => wp_count_terms($this->screen->taxonomy, compact("\163\x65\x61\162\x63\x68")), "\x70\145\x72\x5f\160\141\x67\145" => $tags_per_page)); } public function has_items() { return true; } public function no_items() { echo get_taxonomy($this->screen->taxonomy)->labels->not_found; } protected function get_bulk_actions() { $actions = array(); $actions["\x64\145\154\x65\164\x65"] = __("\x44\145\154\x65\164\145"); return $actions; } public function current_action() { if (isset($_REQUEST["\141\x63\164\x69\x6f\156"]) && isset($_REQUEST["\144\145\x6c\x65\x74\x65\x5f\164\141\x67\x73"]) && ("\144\x65\154\145\x74\145" === $_REQUEST["\141\x63\x74\x69\x6f\156"] || "\x64\x65\154\x65\164\x65" === $_REQUEST["\x61\143\x74\x69\x6f\x6e\x32"])) { return "\142\x75\x6c\153\55\x64\145\154\x65\x74\145"; } return parent::current_action(); } public function get_columns() { $columns = array("\143\x62" => "\x3c\151\x6e\160\x75\x74\40\x74\x79\x70\x65\75\x22\x63\x68\145\143\153\x62\157\170\x22\x20\x2f\76", "\x6e\141\x6d\x65" => _x("\116\x61\x6d\x65", "\x74\x65\x72\155\x20\x6e\x61\x6d\145"), "\144\x65\163\x63\162\151\160\x74\x69\157\x6e" => __("\x44\x65\x73\x63\162\x69\x70\164\151\x6f\x6e"), "\163\154\165\147" => __("\123\x6c\165\x67")); if ("\154\x69\156\153\137\143\x61\164\x65\x67\157\x72\171" === $this->screen->taxonomy) { $columns["\154\151\x6e\153\x73"] = __("\114\x69\156\x6b\x73"); } else { $columns["\x70\x6f\163\164\x73"] = _x("\x43\157\x75\x6e\164", "\116\x75\x6d\x62\x65\x72\57\143\157\165\x6e\164\40\157\146\40\x69\164\x65\155\163"); } return $columns; } protected function get_sortable_columns() { return array("\156\141\155\x65" => "\x6e\141\155\145", "\x64\x65\163\x63\162\151\x70\x74\151\x6f\x6e" => "\144\145\x73\143\x72\151\x70\164\151\x6f\x6e", "\x73\154\165\x67" => "\x73\x6c\x75\x67", "\x70\157\x73\x74\x73" => "\143\x6f\165\156\x74", "\154\x69\156\x6b\163" => "\x63\x6f\165\156\164"); } public function display_rows_or_placeholder() { $taxonomy = $this->screen->taxonomy; $args = wp_parse_args($this->callback_args, array("\160\x61\x67\145" => 1, "\156\165\x6d\x62\145\x72" => 20, "\163\145\141\x72\143\150" => '', "\150\x69\144\145\137\x65\x6d\x70\x74\x79" => 0)); $page = $args["\160\x61\147\145"]; $number = $args["\156\x75\155\142\145\162"]; $args["\x6f\146\x66\163\145\x74"] = $offset = ($page - 1) * $number; $count = 0; if (is_taxonomy_hierarchical($taxonomy) && !isset($args["\x6f\x72\x64\x65\162\142\x79"])) { $args["\x6e\x75\x6d\x62\x65\x72"] = $args["\x6f\146\x66\x73\145\x74"] = 0; } $terms = get_terms($taxonomy, $args); if (empty($terms) || !is_array($terms)) { echo "\x3c\164\x72\x20\x63\x6c\x61\163\163\x3d\42\x6e\x6f\55\x69\164\145\x6d\x73\42\x3e\74\164\144\40\x63\x6c\x61\x73\163\x3d\42\143\x6f\x6c\163\x70\x61\x6e\143\x68\x61\x6e\147\x65\x22\40\x63\157\154\163\x70\141\156\x3d\42" . $this->get_column_count() . "\42\76"; $this->no_items(); echo "\x3c\x2f\164\x64\76\74\x2f\x74\x72\76"; return; } if (is_taxonomy_hierarchical($taxonomy) && !isset($args["\157\x72\144\145\x72\142\x79"])) { if (!empty($args["\x73\145\141\x72\x63\x68"])) { $children = array(); } else { $children = _get_term_hierarchy($taxonomy); } $this->_rows($taxonomy, $terms, $children, $offset, $number, $count); } else { foreach ($terms as $term) { $this->single_row($term); } } } private function _rows($taxonomy, $terms, &$children, $start, $per_page, &$count, $parent = 0, $level = 0) { $end = $start + $per_page; foreach ($terms as $key => $term) { if ($count >= $end) { break; } if ($term->parent != $parent && empty($_REQUEST["\163"])) { continue; } if ($count == $start && $term->parent > 0 && empty($_REQUEST["\163"])) { $my_parents = $parent_ids = array(); $p = $term->parent; while ($p) { $my_parent = get_term($p, $taxonomy); $my_parents[] = $my_parent; $p = $my_parent->parent; if (in_array($p, $parent_ids)) { break; } $parent_ids[] = $p; } unset($parent_ids); $num_parents = count($my_parents); while ($my_parent = array_pop($my_parents)) { echo "\x9"; $this->single_row($my_parent, $level - $num_parents); $num_parents--; } } if ($count >= $start) { echo "\x9"; $this->single_row($term, $level); } ++$count; unset($terms[$key]); if (isset($children[$term->term_id]) && empty($_REQUEST["\163"])) { $this->_rows($taxonomy, $terms, $children, $start, $per_page, $count, $term->term_id, $level + 1); } } } public function single_row($tag, $level = 0) { global $taxonomy; $tag = sanitize_term($tag, $taxonomy); $this->level = $level; echo "\x3c\164\x72\40\151\x64\75\42\x74\x61\x67\55" . $tag->term_id . "\42\76"; $this->single_row_columns($tag); echo "\x3c\x2f\164\162\76"; } public function column_cb($tag) { $default_term = get_option("\x64\x65\146\141\165\x6c\164\x5f" . $this->screen->taxonomy); if (current_user_can(get_taxonomy($this->screen->taxonomy)->cap->delete_terms) && $tag->term_id != $default_term) { return "\74\154\141\142\x65\154\40\x63\x6c\141\x73\x73\75\42\x73\x63\x72\145\145\156\55\x72\145\141\x64\145\x72\55\164\x65\170\164\42\40\146\x6f\162\75\42\143\142\55\163\145\154\x65\143\x74\x2d" . $tag->term_id . "\42\76" . sprintf(__("\x53\x65\154\145\x63\x74\x20\45\x73"), $tag->name) . "\x3c\x2f\x6c\x61\142\145\x6c\x3e" . "\x3c\151\x6e\160\x75\164\x20\164\x79\x70\x65\x3d\x22\143\x68\145\143\153\x62\157\x78\x22\x20\156\141\155\145\75\42\144\x65\x6c\145\164\x65\137\164\x61\x67\x73\x5b\135\42\x20\x76\141\x6c\165\145\75\42" . $tag->term_id . "\42\x20\x69\x64\75\42\143\x62\55\163\145\x6c\145\x63\164\x2d" . $tag->term_id . "\x22\x20\x2f\x3e"; } return "\x26\156\x62\x73\x70\73"; } public function column_name($tag) { $taxonomy = $this->screen->taxonomy; $pad = str_repeat("\x26\x23\x38\x32\61\x32\x3b\40", max(0, $this->level)); $name = apply_filters("\164\x65\162\155\137\x6e\x61\x6d\x65", $pad . "\40" . $tag->name, $tag); $qe_data = get_term($tag->term_id, $taxonomy, OBJECT, "\x65\144\151\164"); $uri = defined("\x44\117\x49\x4e\107\x5f\x41\x4a\101\130") && DOING_AJAX ? wp_get_referer() : $_SERVER["\122\x45\121\x55\x45\123\124\x5f\x55\122\111"]; $edit_link = add_query_arg("\167\160\x5f\x68\164\x74\160\137\x72\145\146\145\x72\x65\x72", urlencode(wp_unslash($uri)), get_edit_term_link($tag->term_id, $taxonomy, $this->screen->post_type)); $out = "\x3c\163\x74\x72\157\156\x67\x3e\x3c\141\x20\x63\x6c\141\163\x73\x3d\x22\162\x6f\x77\55\x74\151\164\154\145\42\x20\150\162\145\x66\x3d\x22" . esc_url($edit_link) . "\42\40\164\x69\x74\154\x65\x3d\x22" . esc_attr(sprintf(__("\105\x64\x69\164\40\46\x23\x38\x32\x32\x30\x3b\x25\163\x26\x23\70\x32\x32\x31\73"), $name)) . "\42\x3e" . $name . "\74\x2f\x61\x3e\74\57\163\x74\162\x6f\156\147\76\x3c\x62\162\40\57\76"; $out .= "\x3c\x64\x69\x76\x20\x63\x6c\141\x73\163\75\42\x68\151\x64\144\145\x6e\42\x20\151\144\x3d\x22\151\156\154\151\x6e\145\137" . $qe_data->term_id . "\x22\76"; $out .= "\x3c\x64\151\x76\x20\143\154\141\163\x73\x3d\x22\x6e\x61\x6d\145\42\x3e" . $qe_data->name . "\x3c\x2f\144\151\166\76"; $out .= "\74\144\x69\x76\40\x63\154\x61\163\x73\75\x22\x73\x6c\x75\147\42\x3e" . apply_filters("\145\144\151\x74\x61\x62\x6c\145\x5f\x73\x6c\165\x67", $qe_data->slug, $qe_data) . "\74\57\144\x69\166\76"; $out .= "\x3c\x64\x69\166\40\x63\x6c\141\163\x73\75\42\160\x61\162\x65\156\164\x22\x3e" . $qe_data->parent . "\x3c\x2f\x64\151\166\76\x3c\57\144\x69\x76\76"; return $out; } protected function get_default_primary_column_name() { return "\x6e\141\155\x65"; } protected function handle_row_actions($tag, $column_name, $primary) { if ($primary !== $column_name) { return ''; } $taxonomy = $this->screen->taxonomy; $tax = get_taxonomy($taxonomy); $default_term = get_option("\144\x65\146\x61\x75\154\x74\x5f" . $taxonomy); $uri = defined("\x44\x4f\x49\x4e\107\137\101\x4a\x41\x58") && DOING_AJAX ? wp_get_referer() : $_SERVER["\x52\105\121\x55\x45\123\124\x5f\125\122\x49"]; $edit_link = add_query_arg("\167\160\x5f\x68\164\164\160\137\x72\x65\x66\x65\162\x65\x72", urlencode(wp_unslash($uri)), get_edit_term_link($tag->term_id, $taxonomy, $this->screen->post_type)); $actions = array(); if (current_user_can($tax->cap->edit_terms)) { $actions["\145\144\151\164"] = "\74\141\x20\x68\162\145\146\75\x22" . esc_url($edit_link) . "\42\76" . __("\x45\144\x69\164") . "\x3c\x2f\x61\x3e"; $actions["\x69\x6e\154\151\x6e\145\x20\x68\x69\144\x65\55\151\x66\55\156\157\x2d\152\x73"] = "\74\141\40\150\x72\x65\146\x3d\42\x23\42\x20\x63\x6c\x61\163\163\x3d\42\x65\144\151\164\x69\156\154\x69\156\145\42\x3e" . __("\x51\165\x69\x63\x6b\x26\156\142\x73\x70\73\105\144\151\164") . "\x3c\x2f\x61\76"; } if (current_user_can($tax->cap->delete_terms) && $tag->term_id != $default_term) { $actions["\x64\145\154\145\164\145"] = "\74\141\40\143\154\x61\x73\x73\x3d\x27\144\x65\x6c\145\164\145\x2d\164\x61\147\x27\x20\x68\162\145\x66\75\47" . wp_nonce_url("\145\144\151\x74\x2d\164\141\147\x73\56\160\150\x70\x3f\141\143\164\x69\x6f\156\x3d\144\145\154\x65\164\145\x26\x61\155\x70\73\164\x61\170\x6f\x6e\157\155\x79\x3d{$taxonomy}\46\141\155\160\x3b\x74\141\x67\x5f\111\x44\x3d{$tag->term_id}", "\x64\x65\x6c\145\164\145\x2d\x74\x61\x67\x5f" . $tag->term_id) . "\x27\x3e" . __("\104\145\154\x65\164\x65") . "\74\x2f\x61\x3e"; } if ($tax->public) { $actions["\x76\151\145\167"] = "\74\x61\x20\x68\162\145\x66\75\42" . get_term_link($tag) . "\x22\x3e" . __("\x56\x69\145\167") . "\74\57\x61\76"; } $actions = apply_filters("\x74\x61\147\137\x72\x6f\167\x5f\141\x63\164\151\x6f\x6e\163", $actions, $tag); $actions = apply_filters("{$taxonomy}\137\x72\x6f\167\x5f\x61\143\x74\x69\157\x6e\x73", $actions, $tag); return $this->row_actions($actions); } public function column_description($tag) { return $tag->description; } public function column_slug($tag) { return apply_filters("\x65\144\151\x74\x61\x62\154\145\137\x73\154\165\147", $tag->slug, $tag); } public function column_posts($tag) { $count = number_format_i18n($tag->count); $tax = get_taxonomy($this->screen->taxonomy); $ptype_object = get_post_type_object($this->screen->post_type); if (!$ptype_object->show_ui) { return $count; } if ($tax->query_var) { $args = array($tax->query_var => $tag->slug); } else { $args = array("\164\x61\x78\x6f\156\157\155\171" => $tax->name, "\164\145\x72\x6d" => $tag->slug); } if ("\160\157\x73\164" != $this->screen->post_type) { $args["\160\x6f\163\x74\x5f\164\x79\x70\x65"] = $this->screen->post_type; } if ("\x61\164\x74\x61\143\x68\x6d\145\x6e\x74" === $this->screen->post_type) { return "\x3c\141\x20\150\x72\145\x66\x3d\x27" . esc_url(add_query_arg($args, "\165\160\154\x6f\x61\144\x2e\x70\x68\x70")) . "\47\76{$count}\74\x2f\x61\x3e"; } return "\74\141\x20\150\162\x65\146\x3d\x27" . esc_url(add_query_arg($args, "\145\144\151\164\x2e\x70\x68\160")) . "\x27\76{$count}\74\57\141\x3e"; } public function column_links($tag) { $count = number_format_i18n($tag->count); if ($count) { $count = "\x3c\141\40\x68\162\145\146\75\x27\x6c\151\x6e\153\55\155\141\156\141\x67\145\162\56\160\150\160\77\143\x61\164\x5f\151\x64\x3d{$tag->term_id}\x27\76{$count}\74\57\141\x3e"; } return $count; } public function column_default($tag, $column_name) { return apply_filters("\x6d\x61\156\x61\147\x65\x5f{$this->screen->taxonomy}\137\x63\165\163\164\157\x6d\x5f\x63\157\x6c\x75\x6d\156", '', $column_name, $tag->term_id); } public function inline_edit() { $tax = get_taxonomy($this->screen->taxonomy); if (!current_user_can($tax->cap->edit_terms)) { return; } ?>

	<form method="get"><table style="display: none"><tbody id="inlineedit">
		<tr id="inline-edit" class="inline-edit-row" style="display: none"><td colspan="<?php  echo $this->get_column_count(); ?>
" class="colspanchange">

			<fieldset>
				<legend class="inline-edit-legend"><?php  _e("\x51\x75\x69\x63\x6b\x20\x45\144\x69\164"); ?>
</legend>
				<div class="inline-edit-col">
				<label>
					<span class="title"><?php  _ex("\x4e\x61\x6d\145", "\x74\x65\x72\155\40\156\141\155\145"); ?>
</span>
					<span class="input-text-wrap"><input type="text" name="name" class="ptitle" value="" /></span>
				</label>
	<?php  if (!global_terms_enabled()) { ?>
				<label>
					<span class="title"><?php  _e("\x53\154\165\147"); ?>
</span>
					<span class="input-text-wrap"><input type="text" name="slug" class="ptitle" value="" /></span>
				</label>
	<?php  } ?>
			</div></fieldset>
	<?php  $core_columns = array("\143\x62" => true, "\x64\x65\163\x63\162\151\160\164\x69\157\156" => true, "\156\141\x6d\x65" => true, "\x73\154\x75\147" => true, "\x70\157\163\x74\163" => true); list($columns) = $this->get_column_info(); foreach ($columns as $column_name => $column_display_name) { if (isset($core_columns[$column_name])) { continue; } do_action("\x71\165\x69\143\153\x5f\x65\x64\151\x74\137\143\x75\163\x74\x6f\x6d\x5f\x62\157\170", $column_name, "\x65\144\151\164\55\x74\x61\147\163", $this->screen->taxonomy); } ?>

		<p class="inline-edit-save submit">
			<button type="button" class="cancel button-secondary alignleft"><?php  _e("\x43\141\156\143\x65\x6c"); ?>
</button>
			<button type="button" class="save button-primary alignright"><?php  echo $tax->labels->update_item; ?>
</button>
			<span class="spinner"></span>
			<span class="error" style="display:none;"></span>
			<?php  wp_nonce_field("\164\141\170\x69\156\x6c\151\x6e\x65\145\x64\x69\164\x6e\157\x6e\143\145", "\137\x69\156\154\151\156\145\x5f\x65\x64\x69\164", false); ?>
			<input type="hidden" name="taxonomy" value="<?php  echo esc_attr($this->screen->taxonomy); ?>
" />
			<input type="hidden" name="post_type" value="<?php  echo esc_attr($this->screen->post_type); ?>
" />
			<br class="clear" />
		</p>
		</td></tr>
		</tbody></table></form>
	<?php  } }

Function Calls

None

Variables

None

Stats

MD5 f965c6cac00f326ec41ff0c594bf2550
Eval Count 0
Decode Time 126 ms