Merge pull request #1078 from mtomas7/patch-1

Allow category display in post preview even when only one category
This commit is contained in:
David A. Kennedy 2017-06-09 15:36:46 -04:00 committed by GitHub
commit ba3966924f
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ function _s_categorized_blog() {
set_transient( '_s_categories', $all_the_cool_cats ); 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. // This blog has more than 1 category so _s_categorized_blog should return true.
return true; return true;
} else { } else {