From dfab67a260fa08c8a9f4dbe9c583527bb42a9942 Mon Sep 17 00:00:00 2001 From: Tomas M Date: Tue, 31 Jan 2017 12:54:55 -0600 Subject: [PATCH] Allow category display in post preview even when only one category Via: https://core.trac.wordpress.org/changeset/40023 --- inc/template-tags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index 7aa07144..13f2b696 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -99,7 +99,7 @@ function _s_categorized_blog() { set_transient( '_s_categories', $all_the_cool_cats ); } - if ( $all_the_cool_cats > 1 ) { + if ( $all_the_cool_cats > 1 || is_preview() ) { // This blog has more than 1 category so _s_categorized_blog should return true. return true; } else {