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.').'
'.__('Options saved.').'