| 1 | Index: wp-admin/custom-background.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/custom-background.php (revision 20957) |
|---|
| 4 | +++ wp-admin/custom-background.php (working copy) |
|---|
| 5 | @@ -234,7 +234,8 @@ |
|---|
| 6 | </tr> |
|---|
| 7 | <?php endif; ?> |
|---|
| 8 | |
|---|
| 9 | -<?php if ( get_theme_support( 'custom-background', 'default-image' ) ) : ?> |
|---|
| 10 | +<?php $default_image = get_theme_support( 'custom-background', 'default-image' ); ?> |
|---|
| 11 | +<?php if ( $default_image && get_background_image() != $default_image ) : ?> |
|---|
| 12 | <tr valign="top"> |
|---|
| 13 | <th scope="row"><?php _e('Restore Original Image'); ?></th> |
|---|
| 14 | <td> |
|---|
| 15 | Index: wp-admin/custom-header.php |
|---|
| 16 | =================================================================== |
|---|
| 17 | --- wp-admin/custom-header.php (revision 20957) |
|---|
| 18 | +++ wp-admin/custom-header.php (working copy) |
|---|
| 19 | @@ -637,7 +637,8 @@ |
|---|
| 20 | </tr> |
|---|
| 21 | <?php endif; |
|---|
| 22 | |
|---|
| 23 | - if ( current_theme_supports( 'custom-header', 'default-image' ) ) : ?> |
|---|
| 24 | + $default_image = get_theme_support( 'custom-header', 'default-image' ); |
|---|
| 25 | + if ( $default_image && get_header_image() != $default_image ) : ?> |
|---|
| 26 | <tr valign="top"> |
|---|
| 27 | <th scope="row"><?php _e( 'Reset Image' ); ?></th> |
|---|
| 28 | <td> |
|---|