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
This commit is contained in:
Andrew Nacin
2012-03-21 20:55:58 +00:00
parent 2a51977bfc
commit a1d8542c67

View File

@@ -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'] ) ) {