mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 14:35:07 +00:00
Twenty Twelve: simplify header image check, props obenland. Closes #25400.
Built from https://develop.svn.wordpress.org/trunk@25626 git-svn-id: http://core.svn.wordpress.org/trunk@25543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
25d1363a66
commit
f3c9b36f73
@ -45,9 +45,8 @@
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
|
||||
</nav><!-- #site-navigation -->
|
||||
|
||||
<?php $header_image = get_header_image();
|
||||
if ( ! empty( $header_image ) ) : ?>
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
|
||||
<?php if ( get_header_image() ) : ?>
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
|
||||
<?php endif; ?>
|
||||
</header><!-- #masthead -->
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user