WordPress 4.5
[autoinstalls/wordpress.git] / wp-content / themes / twentyfifteen / inc / template-tags.php
index 1baca524ad8b70be9b74902c3a34c707cf9c8027..fb6004ec38bf4645aa8168b5bbd0a5b6c8ef58bc 100644 (file)
@@ -241,3 +241,18 @@ function twentyfifteen_excerpt_more( $more ) {
 }
 add_filter( 'excerpt_more', 'twentyfifteen_excerpt_more' );
 endif;
+
+if ( ! function_exists( 'twentyfifteen_the_custom_logo' ) ) :
+/**
+ * Displays the optional custom logo.
+ *
+ * Does nothing if the custom logo is not available.
+ *
+ * @since Twenty Fifteen 1.5
+ */
+function twentyfifteen_the_custom_logo() {
+       if ( function_exists( 'the_custom_logo' ) ) {
+               the_custom_logo();
+       }
+}
+endif;