From 1a3755965478355043294adae47479bc4dc85abd Mon Sep 17 00:00:00 2001 From: nacin Date: Sun, 23 Oct 2011 17:48:58 +0000 Subject: [PATCH] Fix [16249]. $typenow is considered empty on edit-tags screens, rather than displaying the parent post type. Switch to the $post_type global for now, which is set in the terms list table constructor. see #14886. git-svn-id: http://svn.automattic.com/wordpress/trunk@19043 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-terms-list-table.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-terms-list-table.php b/wp-admin/includes/class-wp-terms-list-table.php index fc4bfe4d3c..85d563c98e 100644 --- a/wp-admin/includes/class-wp-terms-list-table.php +++ b/wp-admin/includes/class-wp-terms-list-table.php @@ -93,7 +93,7 @@ class WP_Terms_List_Table extends WP_List_Table { } function get_columns() { - global $taxonomy, $typenow; + global $taxonomy, $post_type; $columns = array( 'cb' => '', @@ -105,7 +105,6 @@ class WP_Terms_List_Table extends WP_List_Table { if ( 'link_category' == $taxonomy ) { $columns['links'] = __( 'Links' ); } else { - $post_type = empty( $typenow ) ? 'post' : $typenow; $post_type_object = get_post_type_object( $post_type ); $columns['posts'] = $post_type_object ? $post_type_object->labels->name : __( 'Posts' ); }