From 349b312b54b92d4de3aae387c2228c23e8574fd5 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 20 Nov 2012 01:53:59 +0000 Subject: [PATCH] Custom Header: Remove Farbtastic-era "Reset Text Color" button. Show default color when JS is disabled. props DrewAPicture. fixes #22461. git-svn-id: https://develop.svn.wordpress.org/trunk@22695 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/custom-header.php | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 6c16328845..57a4afc2b7 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -215,12 +215,6 @@ class Custom_Image_Header { return; } - if ( isset( $_POST['resettext'] ) ) { - check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); - remove_theme_mod('header_textcolor'); - return; - } - if ( isset( $_POST['removeheader'] ) ) { check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); $this->remove_header_image(); @@ -628,24 +622,17 @@ class Custom_Image_Header { '; + if ( $default_color ) + echo ' ' . sprintf( _x( 'Default: %s', 'color' ), $default_color ) . ''; +} ?> - />

- - - - - -

- - - - -