Reset $taxonomy in single_row's default branch. props tott. fixes #21240.

git-svn-id: http://core.svn.wordpress.org/trunk@21945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-09-21 20:28:25 +00:00
parent c1b0670c2d
commit 51326aaf91
1 changed files with 3 additions and 1 deletions

View File

@ -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 '<td ' . $attributes . '>';
if ( $terms = get_the_terms( $post->ID, $taxonomy ) ) {