Make WordPress Core


Ignore:
Timestamp:
03/09/2016 11:01:53 PM (9 years ago)
Author:
karmatosed
Message:

Twenty Fifteen: add support for site logos
Fixes #35944
Props @iamtakashi, @celloexpressions, @drebbits.web

File:
1 edited

Legend:

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

    r33005 r36913  
    242242add_filter( 'excerpt_more', 'twentyfifteen_excerpt_more' );
    243243endif;
     244
     245if ( ! function_exists( 'twentyfifteen_the_custom_logo' ) ) :
     246/**
     247 * Displays the optional custom logo.
     248 *
     249 * Returns early if the custom logo is not available.
     250 *
     251 * @since Twenty Fifteen 1.5
     252 */
     253function twentyfifteen_the_custom_logo() {
     254    if ( ! function_exists( 'the_custom_logo' ) ) {
     255        return;
     256    } else {
     257        the_custom_logo();
     258    }
     259}
     260endif;
Note: See TracChangeset for help on using the changeset viewer.