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
This commit is contained in:
nacin 2012-03-21 20:55:58 +00:00
parent e0fa1f427c
commit 59b84a01ea
1 changed files with 1 additions and 1 deletions

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