Twenty Fourteen: simplify header image check, props obenland. See #25400.

Built from https://develop.svn.wordpress.org/trunk@25604


git-svn-id: http://core.svn.wordpress.org/trunk@25521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-09-24 17:07:10 +00:00
parent a1523dd43b
commit 288482e862

View File

@ -26,8 +26,7 @@
<div id="page" class="hfeed site"> <div id="page" class="hfeed site">
<?php do_action( 'before' ); ?> <?php do_action( 'before' ); ?>
<?php $header_image = get_header_image(); <?php if ( get_header_image() ) : ?>
if ( ! empty( $header_image ) ) : ?>
<div id="site-header"> <div id="site-header">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /> <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />