WordPress.org

Make WordPress Core

Changeset 22014


Ignore:
Timestamp:
09/26/2012 04:59:57 PM (9 years ago)
Author:
lancewillett
Message:

Twenty Twelve: header image should be wrapped in a link to home. Fixes #22004.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/header.php

    r21730 r22014  
    4444        <?php $header_image = get_header_image();
    4545        if ( ! empty( $header_image ) ) : ?>
    46             <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="" />
     46            <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>
    4747        <?php endif; ?>
    4848    </header><!-- #masthead -->
Note: See TracChangeset for help on using the changeset viewer.