From 0990313c25ee272e4ff0e505447364ccf613ed38 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 15 Jun 2017 12:06:41 +0000 Subject: [PATCH] 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 --- wp-content/themes/twentysixteen/inc/template-tags.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentysixteen/inc/template-tags.php b/wp-content/themes/twentysixteen/inc/template-tags.php index eb87203062..fa1ad8efed 100644 --- a/wp-content/themes/twentysixteen/inc/template-tags.php +++ b/wp-content/themes/twentysixteen/inc/template-tags.php @@ -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 { diff --git a/wp-includes/version.php b/wp-includes/version.php index 63b30e2178..622f94ee24 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.