Ticket #39531: 39531.2.diff
File 39531.2.diff, 1.7 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 { -
wp-content/themes/twentyseventeen/inc/template-tags.php
178 178 set_transient( 'twentyseventeen_categories', $category_count ); 179 179 } 180 180 181 // Allow viewing case of 0 or 1 categories in post preview. 182 if ( is_preview() ) { 183 return true; 184 } 185 181 186 return $category_count > 1; 182 187 } 183 188