Display correct Taxonomy heading. See #11838

git-svn-id: https://develop.svn.wordpress.org/trunk@12835 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-01-26 12:13:24 +00:00
parent d1a8b1bdb6
commit a03409e0af
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';