From e2acb46b6c8b2886c72ad064506171f343e76760 Mon Sep 17 00:00:00 2001 From: westi Date: Fri, 28 Dec 2007 22:56:56 +0000 Subject: [PATCH] Making the default theme notice free. git-svn-id: http://svn.automattic.com/wordpress/trunk@6518 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/default/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/themes/default/functions.php b/wp-content/themes/default/functions.php index 1ea54fc896..c8baba0a1e 100644 --- a/wp-content/themes/default/functions.php +++ b/wp-content/themes/default/functions.php @@ -80,7 +80,7 @@ function kubrick_header_display_string() { add_action('admin_menu', 'kubrick_add_theme_page'); function kubrick_add_theme_page() { - if ( $_GET['page'] == basename(__FILE__) ) { + if ( array_key_exists( 'page', $_GET ) && $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { check_admin_referer('kubrick-header'); if ( isset($_REQUEST['njform']) ) {