Ticket #39531: 39531.diff
File 39531.diff, 1.1 KB (added by , 8 years ago) |
---|
-
wp-content/themes/twentyfifteen/inc/template-tags.php
150 150 set_transient( 'twentyfifteen_categories', $all_the_cool_cats ); 151 151 } 152 152 153 if ( $all_the_cool_cats > 1 ) {153 if ( $all_the_cool_cats > 1 || is_preview() ) { 154 154 // This blog has more than 1 category so twentyfifteen_categorized_blog should return true. 155 155 return true; 156 156 } else { -
wp-content/themes/twentyfourteen/inc/template-tags.php
140 140 set_transient( 'twentyfourteen_category_count', $all_the_cool_cats ); 141 141 } 142 142 143 if ( 1 !== (int) $all_the_cool_cats) {143 if ( $all_the_cool_cats > 1 || is_preview() ) { 144 144 // This blog has more than 1 category so twentyfourteen_categorized_blog should return true 145 145 return true; 146 146 } else {