$wp_list_table->check_permissions('edit'); if (!isset($_POST['tax_ID']) || !($id = (int) $_POST['tax_ID'])) { die(-1); } $tag = get_term($id, $taxonomy); $_POST['description'] = $tag->description; $updated = wp_update_term($id, $taxonomy, $_POST); if ($updated && !is_wp_error($updated)) { $tag = get_term($updated['term_id'], $taxonomy); if (!$tag || is_wp_error($tag)) { if (is_wp_error($tag) && $tag->get_error_message()) { die($tag->get_error_message()); } die(__('Item not updated.')); } echo $wp_list_table->single_row($tag, 0, $taxonomy); } else { if (is_wp_error($updated) && $updated->get_error_message()) { die($updated->get_error_message()); } die(__('Item not updated.')); } exit; break; case 'find_posts': check_ajax_referer('find-posts'); if (empty($_POST['ps'])) { exit; } if (!empty($_POST['post_type']) && in_array($_POST['post_type'], get_post_types())) { $what = $_POST['post_type'];