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:
parent
a1523dd43b
commit
288482e862
|
@ -26,8 +26,7 @@
|
|||
<div id="page" class="hfeed site">
|
||||
<?php do_action( 'before' ); ?>
|
||||
|
||||
<?php $header_image = get_header_image();
|
||||
if ( ! empty( $header_image ) ) : ?>
|
||||
<?php if ( get_header_image() ) : ?>
|
||||
<div id="site-header">
|
||||
<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="" />
|
||||
|
|
Loading…
Reference in New Issue