WordPress 4.5
[autoinstalls/wordpress.git] / wp-content / themes / twentysixteen / inc / template-tags.php
index 74b4d4337c61dc39b987ff4274ab759ddb8dd161..2a010ac771199cf925496d40950b829ba6b644bb 100644 (file)
@@ -235,3 +235,18 @@ function twentysixteen_category_transient_flusher() {
 }
 add_action( 'edit_category', 'twentysixteen_category_transient_flusher' );
 add_action( 'save_post',     'twentysixteen_category_transient_flusher' );
+
+if ( ! function_exists( 'twentysixteen_the_custom_logo' ) ) :
+/**
+ * Displays the optional custom logo.
+ *
+ * Does nothing if the custom logo is not available.
+ *
+ * @since Twenty Sixteen 1.2
+ */
+function twentysixteen_the_custom_logo() {
+       if ( function_exists( 'the_custom_logo' ) ) {
+               the_custom_logo();
+       }
+}
+endif;