From 8565aa6e3435136a661f5e462b7aa16156459544 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 21 Sep 2012 20:28:25 +0000 Subject: [PATCH] Reset $taxonomy in single_row's default branch. props tott. fixes #21240. git-svn-id: https://develop.svn.wordpress.org/trunk@21945 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-posts-list-table.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index a04970a931..190edaba3d 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -635,8 +635,10 @@ class WP_Posts_List_Table extends WP_List_Table { $taxonomy = 'post_tag'; elseif ( 0 === strpos( $column_name, 'taxonomy-' ) ) $taxonomy = substr( $column_name, 9 ); + else + $taxonomy = false; - if ( ! empty( $taxonomy ) ) { + if ( $taxonomy ) { $taxonomy_object = get_taxonomy( $taxonomy ); echo ''; if ( $terms = get_the_terms( $post->ID, $taxonomy ) ) {