Make WordPress Core

Ticket #38927: 38927.patch

File 38927.patch, 709 bytes (added by laurelfulford, 8 years ago)
  • src/wp-content/themes/twentyseventeen/template-parts/header/header-image.php

     
    1111?>
    1212<div class="custom-header">
    1313
    14         <div class="custom-header-image">
    15                 <?php the_custom_header_markup(); ?>
    16         </div>
     14        <?php if ( has_custom_header() ) : ?>
     15                <div class="custom-header-image">
     16                        <?php the_custom_header_markup(); ?>
     17                </div>
     18        <?php endif; ?>
    1719
    1820        <?php get_template_part( 'template-parts/header/site', 'branding' ); ?>
    1921