Twenty Fifteen: Simplify twentyfifteen_the_custom_logo()
.
See b72e3d8059
See #35944.
git-svn-id: https://develop.svn.wordpress.org/trunk@36943 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
08ec976d15
commit
4c0c3f769f
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user