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/twentyeleven/content.php

    r45932 r47122  
    3333        </header><!-- .entry-header -->
    3434
    35         <?php if ( is_search() ) : // Only display Excerpts for Search ?>
     35        <?php if ( is_search() ) : // Only display excerpts for search. ?>
    3636        <div class="entry-summary">
    3737            <?php the_excerpt(); ?>
     
    5353        <footer class="entry-meta">
    5454            <?php $show_sep = false; ?>
    55             <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported ?>
     55            <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported. ?>
    5656                <?php
    5757                /* translators: Used between list items, there is a space after the comma. */
     
    6666                    ?>
    6767            </span>
    68                 <?php endif; // End if categories ?>
    69             <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ) ?>
    70             <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported ?>
     68                <?php endif; // End if categories. ?>
     69            <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ). ?>
     70            <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported. ?>
    7171                <?php
    7272                /* translators: Used between list items, there is a space after the comma. */
     
    7676                        ?>
    7777            <span class="sep"> | </span>
    78                     <?php endif; // End if $show_sep ?>
     78                    <?php endif; // End if $show_sep. ?>
    7979            <span class="tag-links">
    8080                    <?php
     
    8484                    ?>
    8585            </span>
    86                 <?php endif; // End if $tags_list ?>
    87             <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ) ?>
     86                <?php endif; // End if $tags_list. ?>
     87            <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ). ?>
    8888
    8989            <?php if ( comments_open() ) : ?>
    9090                <?php if ( $show_sep ) : ?>
    9191            <span class="sep"> | </span>
    92             <?php endif; // End if $show_sep ?>
     92            <?php endif; // End if $show_sep. ?>
    9393            <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span>
    94             <?php endif; // End if comments_open() ?>
     94            <?php endif; // End if comments_open(). ?>
    9595
    9696            <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
Note: See TracChangeset for help on using the changeset viewer.