From 4c0c3f769f9710ff7c0072be1155a22ff838d5cd Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Thu, 10 Mar 2016 18:20:13 +0000 Subject: [PATCH] Twenty Fifteen: Simplify `twentyfifteen_the_custom_logo()`. See https://github.com/WordPress/twentysixteen/commit/b72e3d8059542542acbd0fdb15f54799109fbf82 See #35944. git-svn-id: https://develop.svn.wordpress.org/trunk@36943 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyfifteen/inc/template-tags.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wp-content/themes/twentyfifteen/inc/template-tags.php b/src/wp-content/themes/twentyfifteen/inc/template-tags.php index 161f0caed5..fb6004ec38 100644 --- a/src/wp-content/themes/twentyfifteen/inc/template-tags.php +++ b/src/wp-content/themes/twentyfifteen/inc/template-tags.php @@ -246,14 +246,12 @@ if ( ! function_exists( 'twentyfifteen_the_custom_logo' ) ) : /** * Displays the optional custom logo. * - * Returns early if the custom logo is not available. + * 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' ) ) { - return; - } else { + if ( function_exists( 'the_custom_logo' ) ) { the_custom_logo(); } }