Allow category display in post preview even when only one category

Via: https://core.trac.wordpress.org/changeset/40023
This commit is contained in:
Tomas M 2017-01-31 12:54:55 -06:00 committed by GitHub
parent b330bbaba7
commit dfab67a260
1 changed files with 1 additions and 1 deletions

View File

@ -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 {