Make WordPress Core


Ignore:
Timestamp:
04/23/2013 04:57:32 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: avoid orphans in Aside date post meta. Props obenland, fixes #24166.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/content-aside.php

    r23680 r24071  
    1515    </div><!-- .entry-content -->
    1616
    17     <?php if ( is_single() ) : ?>
    1817    <footer class="entry-meta">
    19         <?php twentythirteen_entry_meta(); ?>
    20         <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
     18        <?php if ( is_single() ) : ?>
     19            <?php twentythirteen_entry_meta(); ?>
     20            <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
    2121
    22         <?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
    23             <?php get_template_part( 'author-bio' ); ?>
    24         <?php endif; ?>
     22            <?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) : ?>
     23                <?php get_template_part( 'author-bio' ); ?>
     24            <?php endif; ?>
     25
     26        <?php else : ?>
     27            <?php twentythirteen_entry_date(); ?>
     28            <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
     29        <?php endif; // is_single() ?>
    2530    </footer><!-- .entry-meta -->
    26 
    27     <?php else : ?>
    28         <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer><!-- .entry-meta -->' ); ?>
    29     <?php endif; // is_single() ?>
    3031</article><!-- #post -->
Note: See TracChangeset for help on using the changeset viewer.