WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (23 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php

    r45932 r47122  
    134134    $all_the_cool_cats = get_transient( 'twentyfourteen_category_count' );
    135135    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.
    137137        $all_the_cool_cats = get_categories(
    138138            array(
     
    141141        );
    142142
    143         // Count the number of categories that are attached to the posts
     143        // Count the number of categories that are attached to the posts.
    144144        $all_the_cool_cats = count( $all_the_cool_cats );
    145145
     
    148148
    149149    if ( $all_the_cool_cats > 1 || is_preview() ) {
    150         // This blog has more than 1 category so twentyfourteen_categorized_blog should return true
     150        // This blog has more than 1 category so twentyfourteen_categorized_blog() should return true.
    151151        return true;
    152152    } else {
    153         // This blog has only 1 category so twentyfourteen_categorized_blog should return false
     153        // This blog has only 1 category so twentyfourteen_categorized_blog() should return false.
    154154        return false;
    155155    }
     
    209209
    210210            <?php
    211     endif; // End is_singular()
     211    endif; // End is_singular().
    212212    }
    213213endif;
     
    239239     * Fire the wp_body_open action.
    240240     *
    241      * Added for backwards compatibility to support pre 5.2.0 WordPress versions.
     241     * Added for backward compatibility to support pre-5.2.0 WordPress versions.
    242242     *
    243243     * @since Twenty Fourteen 2.7
Note: See TracChangeset for help on using the changeset viewer.