From f2aa6e80cfed924a4545efd2caf4d4330f49a326 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Fri, 28 Dec 2007 23:02:13 +0000 Subject: [PATCH] Really making the default theme notice free. git-svn-id: https://develop.svn.wordpress.org/trunk@6519 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/default/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/default/functions.php b/wp-content/themes/default/functions.php index c8baba0a1e..4c65eb60ef 100644 --- a/wp-content/themes/default/functions.php +++ b/wp-content/themes/default/functions.php @@ -80,8 +80,8 @@ function kubrick_header_display_string() { add_action('admin_menu', 'kubrick_add_theme_page'); function kubrick_add_theme_page() { - if ( array_key_exists( 'page', $_GET ) && $_GET['page'] == basename(__FILE__) ) { - if ( 'save' == $_REQUEST['action'] ) { + if ( isset( $_GET['page'] ) && $_GET['page'] == basename(__FILE__) ) { + if ( isset( $_REQUEST['action'] ) && 'save' == $_REQUEST['action'] ) { check_admin_referer('kubrick-header'); if ( isset($_REQUEST['njform']) ) { if ( isset($_REQUEST['defaults']) ) { @@ -354,7 +354,7 @@ function kubrick_theme_page_head() { } function kubrick_theme_page() { - if ( $_REQUEST['saved'] ) echo '

'.__('Options saved.').'

'; + if ( isset( $_REQUEST['saved'] ) ) echo '

'.__('Options saved.').'

'; ?>