From bebd9a060a8007157139046e82f426b5aeb228d4 Mon Sep 17 00:00:00 2001 From: dd32 Date: Tue, 26 Jan 2010 12:13:24 +0000 Subject: [PATCH] Display correct Taxonomy heading. See #11838 git-svn-id: http://svn.automattic.com/wordpress/trunk@12835 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-tags.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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';