From a1d8542c6791a8f1640e45edcb0c315513cd377b Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 21 Mar 2012 20:55:58 +0000 Subject: [PATCH] Properly intercept the main form being submitted when checking for the display-header-text checkbox. see #18887. git-svn-id: https://develop.svn.wordpress.org/trunk@20243 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/custom-header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 5a81102e24..841d61f985 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -208,7 +208,7 @@ class Custom_Image_Header { return; } - if ( ! isset( $_POST['display-header-text'] ) ) { + if ( isset( $_POST['text-color'] ) && ! isset( $_POST['display-header-text'] ) ) { check_admin_referer( 'custom-header-options', '_wpnonce-custom-header-options' ); set_theme_mod( 'header_textcolor', 'blank' ); } elseif ( isset( $_POST['text-color'] ) ) {