From e4b8919c31fa88da1d3285d24a5b025bbe46a64f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 25 Feb 2010 19:32:10 +0000 Subject: [PATCH] Default header selector, second pass. see #12343 git-svn-id: https://develop.svn.wordpress.org/trunk@13404 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 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(); +?> + + +

+