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/functions.php

    r24070 r24071  
    376376        echo '<span class="featured-post">' . __( 'Sticky', 'twentythirteen' ) . '</span>';
    377377
    378     if ( ! has_post_format( 'aside' ) && ! has_post_format( 'link' ) && 'post' == get_post_type() )
     378    if ( ! has_post_format( 'link' ) && 'post' == get_post_type() )
    379379        twentythirteen_entry_date();
    380380
     
    530530
    531531/**
    532  * Adds entry date to aside posts after the content.
    533  *
    534  *
    535  * @since Twenty Thirteen 1.0
    536  *
    537  * @param string $content Post content.
    538  * @return string Post content.
    539  */
    540 function twentythirteen_aside_date( $content ) {
    541     if ( ! is_feed() && has_post_format( 'aside' ) ) {
    542         $content .= twentythirteen_entry_date( false );
    543     }
    544     return $content;
    545 }
    546 add_filter( 'the_content', 'twentythirteen_aside_date', 8 ); // After embeds, before everything else.
    547 
    548 /**
    549532 * Switches default core markup for search form to output valid HTML5.
    550533 *
Note: See TracChangeset for help on using the changeset viewer.