mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
d26e92d60f
commit
159e67efe2
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user