From 7846681ed4ca855faf8d440a7aeabadf0cd164e2 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 11 Sep 2012 01:31:53 +0000 Subject: [PATCH] Don't show 'Uncategorized' in the category column on edit.php if there are no categories (including the default one). props ocean90. fixes #21240. git-svn-id: https://develop.svn.wordpress.org/trunk@21806 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-posts-list-table.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index cf5f0e1843..c9126ef7ce 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -670,10 +670,7 @@ class WP_Posts_List_Table extends WP_List_Table { /* translators: used between list items, there is a space after the comma */ echo join( __( ', ' ), $out ); } else { - if ( 'category' == $taxonomy ) - echo __( 'Uncategorized' ); - else - echo '—'; + echo '—'; } echo ''; break;