From b545454ceb42f3ccf60eb6f2d18abbbaaf388cfb Mon Sep 17 00:00:00 2001 From: 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: http://core.svn.wordpress.org/trunk@20966 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ) : ?>