Make WordPress Core


Ignore:
Timestamp:
05/30/2012 09:58:27 PM (13 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-background.php

    r20901 r20966  
    235235<?php endif; ?>
    236236
    237 <?php if ( get_theme_support( 'custom-background', 'default-image' ) ) : ?>
     237<?php $default_image = get_theme_support( 'custom-background', 'default-image' ); ?>
     238<?php if ( $default_image && get_background_image() != $default_image ) : ?>
    238239<tr valign="top">
    239240<th scope="row"><?php _e('Restore Original Image'); ?></th>
Note: See TracChangeset for help on using the changeset viewer.