diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 798443bddd..cb6eba2d3f 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -9,8 +9,6 @@ /** WordPress Administration Bootstrap */ require_once('admin.php'); -$title = __('Tags'); - wp_reset_vars( array('action', 'tag', 'taxonomy', 'post_type') ); if ( empty($taxonomy) ) @@ -21,6 +19,8 @@ if ( !is_taxonomy($taxonomy) ) $tax = get_taxonomy($taxonomy); +$title = $tax->label; + if ( empty($post_type) || !in_array( $post_type, get_post_types( array('_show' => true) ) ) ) $post_type = 'post';