- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php
r45932 r47122 134 134 $all_the_cool_cats = get_transient( 'twentyfourteen_category_count' ); 135 135 if ( false === $all_the_cool_cats ) { 136 // Create an array of all the categories that are attached to posts 136 // Create an array of all the categories that are attached to posts. 137 137 $all_the_cool_cats = get_categories( 138 138 array( … … 141 141 ); 142 142 143 // Count the number of categories that are attached to the posts 143 // Count the number of categories that are attached to the posts. 144 144 $all_the_cool_cats = count( $all_the_cool_cats ); 145 145 … … 148 148 149 149 if ( $all_the_cool_cats > 1 || is_preview() ) { 150 // This blog has more than 1 category so twentyfourteen_categorized_blog should return true150 // This blog has more than 1 category so twentyfourteen_categorized_blog() should return true. 151 151 return true; 152 152 } else { 153 // This blog has only 1 category so twentyfourteen_categorized_blog should return false153 // This blog has only 1 category so twentyfourteen_categorized_blog() should return false. 154 154 return false; 155 155 } … … 209 209 210 210 <?php 211 endif; // End is_singular() 211 endif; // End is_singular(). 212 212 } 213 213 endif; … … 239 239 * Fire the wp_body_open action. 240 240 * 241 * Added for backward s compatibility to support pre5.2.0 WordPress versions.241 * Added for backward compatibility to support pre-5.2.0 WordPress versions. 242 242 * 243 243 * @since Twenty Fourteen 2.7
Note: See TracChangeset
for help on using the changeset viewer.