WordPress.org

Make WordPress Core

Ticket #14531: 14531-2.diff

File 14531-2.diff, 601 bytes (added by nickmomrik, 6 years ago)

Show the preview if a header image is set or header text is being displayed

  • wp-admin/custom-header.php

     
    504504<table class="form-table">
    505505<tbody>
    506506
     507<?php if ( get_header_image() || display_header_text() ) : ?>
    507508<tr valign="top">
    508509<th scope="row"><?php _e( 'Preview' ); ?></th>
    509510<td>
     
    524525        <?php } ?>
    525526</td>
    526527</tr>
     528<?php endif; ?>
     529
    527530<?php if ( current_theme_supports( 'custom-header', 'uploads' ) ) : ?>
    528531<tr valign="top">
    529532<th scope="row"><?php _e( 'Select Image' ); ?></th>