When the current image is the default image, don't show buttons to restore to that image, for both custom headers and backgrounds. props mfields, SergeyBiryukov. fixes #20763.
git-svn-id: https://develop.svn.wordpress.org/trunk@20966 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e04fa3900b
commit
d8c375fd4e
@ -234,7 +234,8 @@ if ( get_background_image() ) {
|
|||||||
</tr>
|
</tr>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ( get_theme_support( 'custom-background', 'default-image' ) ) : ?>
|
<?php $default_image = get_theme_support( 'custom-background', 'default-image' ); ?>
|
||||||
|
<?php if ( $default_image && get_background_image() != $default_image ) : ?>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th scope="row"><?php _e('Restore Original Image'); ?></th>
|
<th scope="row"><?php _e('Restore Original Image'); ?></th>
|
||||||
<td>
|
<td>
|
||||||
|
@ -637,7 +637,8 @@ var farbtastic;
|
|||||||
</tr>
|
</tr>
|
||||||
<?php endif;
|
<?php endif;
|
||||||
|
|
||||||
if ( current_theme_supports( 'custom-header', 'default-image' ) ) : ?>
|
$default_image = get_theme_support( 'custom-header', 'default-image' );
|
||||||
|
if ( $default_image && get_header_image() != $default_image ) : ?>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th scope="row"><?php _e( 'Reset Image' ); ?></th>
|
<th scope="row"><?php _e( 'Reset Image' ); ?></th>
|
||||||
<td>
|
<td>
|
||||||
|
Loading…
Reference in New Issue
Block a user