Make WordPress Core

Ticket #31374: template-tags.php.2.diff

File template-tags.php.2.diff, 920 bytes (added by WordPressor.ru, 11 years ago)

both twentyfourteen_post_thumbnail and twentyfourteen_categorized_blog are pluggable

  • wp-content/themes/twentyfourteen/inc/template-tags.php

    old new  
    120120}
    121121endif;
    122122
     123if ( ! function_exists( 'twentyfourteen_categorized_blog' ) ) :
    123124/**
    124125 * Find out if blog has more than one category.
    125126 *
     
    148149                return false;
    149150        }
    150151}
     152endif;
    151153
    152154/**
    153155 * Flush out the transients used in twentyfourteen_categorized_blog.
     
    161163add_action( 'edit_category', 'twentyfourteen_category_transient_flusher' );
    162164add_action( 'save_post',     'twentyfourteen_category_transient_flusher' );
    163165
     166if ( ! function_exists( 'twentyfourteen_post_thumbnail' ) ) :
    164167/**
    165168 * Display an optional post thumbnail.
    166169 *
     
    201204
    202205        <?php endif; // End is_singular()
    203206}
     207endif;
    204208
    205209if ( ! function_exists( 'twentyfourteen_excerpt_more' ) && ! is_admin() ) :
    206210/**