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

Props lancewillett, davidakennedy.
Fixes #39531.
Built from https://develop.svn.wordpress.org/trunk@40908


git-svn-id: http://core.svn.wordpress.org/trunk@40758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-06-15 12:06:41 +00:00
parent a72ec29c4d
commit 0990313c25
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.9-alpha-40907'; $wp_version = '4.9-alpha-40908';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.