From 59b84a01ea5e7f8cdf6d38257c0aeb12102c5199 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@20243 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 5a81102e2..841d61f98 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'] ) ) {