forked from mirror/_s
Merge pull request #1078 from mtomas7/patch-1
Allow category display in post preview even when only one category
This commit is contained in:
commit
ba3966924f
|
@ -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 {
|
||||||
|
|
Reference in New Issue