Only show 'Preview' on the custom header screen if there is something 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
This commit is contained in:
Andrew Nacin 2013-08-27 12:27:10 +00:00
parent d26e92d60f
commit 159e67efe2

View File

@ -464,6 +464,7 @@ class Custom_Image_Header {
<table class="form-table">
<tbody>
<?php if ( get_custom_header() || display_header_text() ) : ?>
<tr valign="top">
<th scope="row"><?php _e( 'Preview' ); ?></th>
<td>
@ -490,6 +491,8 @@ class Custom_Image_Header {
<?php } ?>
</td>
</tr>
<?php endif; ?>
<?php if ( current_theme_supports( 'custom-header', 'uploads' ) ) : ?>
<tr valign="top">
<th scope="row"><?php _e( 'Select Image' ); ?></th>