Display correct Taxonomy heading. See #11838

git-svn-id: http://svn.automattic.com/wordpress/trunk@12835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-01-26 12:13:24 +00:00
parent f80381d9a5
commit bebd9a060a
1 changed files with 2 additions and 2 deletions

View File

@ -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';