Make WordPress Core


Ignore:
Timestamp:
08/22/2013 05:02:34 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: Align post format handling with Twenty Thirteen. Props Frank Klein and obenland, see #24877.

File:
1 edited

Legend:

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

    r25087 r25088  
    144144add_action( 'edit_category', 'twentyfourteen_category_transient_flusher' );
    145145add_action( 'save_post',     'twentyfourteen_category_transient_flusher' );
    146 
    147 /**
    148  * Include the Post-Format-specific template for the content.
    149  * This is called in index.php and single.php
    150  */
    151 function twentyfourteen_get_template_part() {
    152     if ( has_post_format( array( 'aside', 'quote', 'link', 'video', 'image' ) ) )
    153         get_template_part( 'content', 'post-format' );
    154     else
    155         get_template_part( 'content', get_post_format() );
    156 }
Note: See TracChangeset for help on using the changeset viewer.