WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/30/2012 09:58:27 PM (9 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-header.php

    r20944 r20966  
    638638    <?php endif;
    639639
    640     if ( current_theme_supports( 'custom-header', 'default-image' ) ) : ?>
     640    $default_image = get_theme_support( 'custom-header', 'default-image' );
     641    if ( $default_image && get_header_image() != $default_image ) : ?>
    641642<tr valign="top">
    642643<th scope="row"><?php _e( 'Reset Image' ); ?></th>
Note: See TracChangeset for help on using the changeset viewer.