X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/ff81ee6e8304a1982a3ec4f5b134764a29d502cf..cc7b1505cd9fafd87c3672f669e13e98b0c544f7:/wp-content/themes/default/functions.php diff --git a/wp-content/themes/default/functions.php b/wp-content/themes/default/functions.php index 5587a48b..b2c78f65 100644 --- a/wp-content/themes/default/functions.php +++ b/wp-content/themes/default/functions.php @@ -57,7 +57,7 @@ function kubrick_header_color_string() { $color = kubrick_header_color(); if ( false === $color ) return 'white'; - + return $color; } @@ -100,21 +100,21 @@ function kubrick_add_theme_page() { } } } else { - + if ( isset($_REQUEST['headerimage']) ) { if ( '' == $_REQUEST['headerimage'] ) delete_option('kubrick_header_image'); else update_option('kubrick_header_image', $_REQUEST['headerimage']); } - + if ( isset($_REQUEST['fontcolor']) ) { if ( '' == $_REQUEST['fontcolor'] ) delete_option('kubrick_header_color'); else update_option('kubrick_header_color', $_REQUEST['fontcolor']); } - + if ( isset($_REQUEST['fontdisplay']) ) { if ( '' == $_REQUEST['fontdisplay'] || 'inline' == $_REQUEST['fontdisplay'] ) delete_option('kubrick_header_display'); @@ -123,7 +123,7 @@ function kubrick_add_theme_page() { } } //print_r($_REQUEST); - header("Location: themes.php?page=functions.php&saved=true"); + wp_redirect("themes.php?page=functions.php&saved=true"); die; } add_action('admin_head', 'kubrick_theme_page_head'); @@ -135,6 +135,7 @@ function kubrick_theme_page_head() { ?>