Changeset 40023
- Timestamp:
- 01/27/2017 10:08:37 PM (8 years ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/inc/template-tags.php
r36943 r40023 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; -
trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php
r31482 r40023 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; -
trunk/src/wp-content/themes/twentyseventeen/inc/template-tags.php
r39909 r40023 178 178 } 179 179 180 // Allow viewing case of 0 or 1 categories in post preview. 181 if ( is_preview() ) { 182 return true; 183 } 184 180 185 return $category_count > 1; 181 186 }
Note: See TracChangeset
for help on using the changeset viewer.