forked from mirror/_s
Allow category display in post preview even when only one category
Via: https://core.trac.wordpress.org/changeset/40023
This commit is contained in:
parent
b330bbaba7
commit
dfab67a260
|
@ -99,7 +99,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