Twenty Sixteen: Allow category display in post preview even when there is only one category.

Props lancewillett, davidakennedy.
Fixes #39531.

git-svn-id: https://develop.svn.wordpress.org/trunk@40908 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2017-06-15 12:05:09 +00:00
parent 5d13bdd1ef
commit c40cbe75de

View File

@ -213,7 +213,7 @@ function twentysixteen_categorized_blog() {
set_transient( 'twentysixteen_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 twentysixteen_categorized_blog should return true.
return true;
} else {