WordPress.org

Make WordPress Core

Ticket #22004: 22004.diff

File 22004.diff, 829 bytes (added by lancewillett, 2 years ago)
  • wp-content/themes/twentytwelve/header.php

     
    4343 
    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 --> 
    4949