From 79ff2e030cdafcf6ee0ef6da8a6e0e337fb0323a Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@19043 602fd350-edb4-49c9-b593-d223f7449a82 --- 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' ); }