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:
parent
d1a8b1bdb6
commit
a03409e0af
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user