diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 73f42589e4..b855471391 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -131,12 +131,14 @@ class Custom_Image_Header { set_theme_mod('header_textcolor', $color); } } + if ( isset($_POST['resetheader']) ) { check_admin_referer('custom-header'); remove_theme_mods(); } if ( isset($_POST['default-header']) ) { + check_admin_referer('custom-header'); $this->process_default_headers(); if ( isset($this->default_headers[$_POST['default-header']]) ) set_theme_mod('header_image', esc_url($this->default_headers[$_POST['default-header']]['url'])); @@ -396,7 +398,7 @@ else: echo '
'; wp_nonce_field('custom-header'); $this->show_default_header_selector(); - echo ''; + echo ''; echo '
'; echo ''; endif; @@ -419,10 +421,22 @@ endif;

-

- +default_headers) ) { +?> +

+show_default_header_selector(); +?> + + +

+