mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00:00
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:
parent
f80381d9a5
commit
bebd9a060a
@ -9,8 +9,6 @@
|
|||||||
/** WordPress Administration Bootstrap */
|
/** WordPress Administration Bootstrap */
|
||||||
require_once('admin.php');
|
require_once('admin.php');
|
||||||
|
|
||||||
$title = __('Tags');
|
|
||||||
|
|
||||||
wp_reset_vars( array('action', 'tag', 'taxonomy', 'post_type') );
|
wp_reset_vars( array('action', 'tag', 'taxonomy', 'post_type') );
|
||||||
|
|
||||||
if ( empty($taxonomy) )
|
if ( empty($taxonomy) )
|
||||||
@ -21,6 +19,8 @@ if ( !is_taxonomy($taxonomy) )
|
|||||||
|
|
||||||
$tax = get_taxonomy($taxonomy);
|
$tax = get_taxonomy($taxonomy);
|
||||||
|
|
||||||
|
$title = $tax->label;
|
||||||
|
|
||||||
if ( empty($post_type) || !in_array( $post_type, get_post_types( array('_show' => true) ) ) )
|
if ( empty($post_type) || !in_array( $post_type, get_post_types( array('_show' => true) ) ) )
|
||||||
$post_type = 'post';
|
$post_type = 'post';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user