From d8c375fd4ef20ca722f30133dea9cf1202384677 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 30 May 2012 21:58:27 +0000 Subject: [PATCH] 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 --- wp-admin/custom-background.php | 3 ++- wp-admin/custom-header.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/custom-background.php b/wp-admin/custom-background.php index e796495183..921bd853b1 100644 --- a/wp-admin/custom-background.php +++ b/wp-admin/custom-background.php @@ -234,7 +234,8 @@ if ( get_background_image() ) { - + + diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 0233d2b22e..2b22111513 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -637,7 +637,8 @@ var farbtastic; + $default_image = get_theme_support( 'custom-header', 'default-image' ); + if ( $default_image && get_header_image() != $default_image ) : ?>