Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years 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/twentytwelve/content.php

    r45932 r47122  
    3838        </header><!-- .entry-header -->
    3939
    40         <?php if ( is_search() ) : // Only display Excerpts for Search ?>
     40        <?php if ( is_search() ) : // Only display excerpts for search. ?>
    4141        <div class="entry-summary">
    4242            <?php the_excerpt(); ?>
     
    5959            <?php twentytwelve_entry_meta(); ?>
    6060            <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
    61             <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?>
     61            <?php
     62            // If a user has filled out their description and this is a multi-author blog, show a bio on their entries.
     63            if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) :
     64                ?>
    6265                <div class="author-info">
    6366                    <div class="author-avatar">
     
    7881                        <div class="author-link">
    7982                            <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
    80                                 <?php
    81                                 /* translators: %s: Author display name. */
    82                                 printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentytwelve' ), get_the_author() );
    83                                 ?>
     83                            <?php
     84                            /* translators: %s: Author display name. */
     85                            printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentytwelve' ), get_the_author() );
     86                            ?>
    8487                            </a>
    8588                        </div><!-- .author-link -->
Note: See TracChangeset for help on using the changeset viewer.