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:
parent
e0fa1f427c
commit
59b84a01ea
|
@ -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'] ) ) {
|
||||
|
|
Loading…
Reference in New Issue