Make WordPress Core

Ticket #39531: 39531.2.patch

File 39531.2.patch, 589 bytes (added by davidakennedy, 8 years ago)

Allow category display in post preview even when only 1 category for Twenty Sixteen

  • src/wp-content/themes/twentysixteen/inc/template-tags.php

     
    213213                set_transient( 'twentysixteen_categories', $all_the_cool_cats );
    214214        }
    215215
    216         if ( $all_the_cool_cats > 1 ) {
     216        if ( $all_the_cool_cats > 1 || is_preview() ) {
    217217                // This blog has more than 1 category so twentysixteen_categorized_blog should return true.
    218218                return true;
    219219        } else {