From a03409e0afa81d01c587b4ec760d256307568c14 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 26 Jan 2010 12:13:24 +0000 Subject: [PATCH] Display correct Taxonomy heading. See #11838 git-svn-id: https://develop.svn.wordpress.org/trunk@12835 602fd350-edb4-49c9-b593-d223f7449a82 --- 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';