Skip to content

Commit

Permalink
Only show 'Preview' on the custom header screen if there is something…
Browse files Browse the repository at this point in the history
… to show.

props nickmomrik.
fixes #14531.

Built from https://develop.svn.wordpress.org/trunk@25135


git-svn-id: http://core.svn.wordpress.org/trunk@25115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Aug 27, 2013
1 parent d26e92d commit 159e67e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-admin/custom-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ function step_1() {
<table class="form-table">
<tbody>

<?php if ( get_custom_header() || display_header_text() ) : ?>
<tr valign="top">
<th scope="row"><?php _e( 'Preview' ); ?></th>
<td>
Expand All @@ -490,6 +491,8 @@ function step_1() {
<?php } ?>
</td>
</tr>
<?php endif; ?>

<?php if ( current_theme_supports( 'custom-header', 'uploads' ) ) : ?>
<tr valign="top">
<th scope="row"><?php _e( 'Select Image' ); ?></th>
Expand Down

0 comments on commit 159e67e

Please sign in to comment.