From c6261f5ff81efa40a86502a92a9168cc1bf53e73 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 25 Feb 2010 19:32:10 +0000 Subject: [PATCH] Default header selector, second pass. see #12343 git-svn-id: http://svn.automattic.com/wordpress/trunk@13404 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/custom-header.php | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 73f42589e..b85547139 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(); +?> + + +

+