From f8c7cafbf47bf658728dfaf766d59424bcccc3e2 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 4 Feb 2010 18:19:21 +0000 Subject: [PATCH] Fix warnings. see #11644 git-svn-id: https://develop.svn.wordpress.org/trunk@12945 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/ms-edit.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-admin/ms-edit.php b/wp-admin/ms-edit.php index 6db1443e51..8cab8aaa7d 100644 --- a/wp-admin/ms-edit.php +++ b/wp-admin/ms-edit.php @@ -23,7 +23,8 @@ switch ( $_GET['action'] ) { if ( empty( $_POST ) ) wp_die( __("You probably need to go back to the options page") ); - update_site_option( "WPLANG", $_POST['WPLANG'] ); + if ( isset($_POST['WPLANG']) ) + update_site_option( "WPLANG", $_POST['WPLANG'] ); if ( is_email( $_POST['admin_email'] ) ) update_site_option( "admin_email", $_POST['admin_email'] ); @@ -102,6 +103,8 @@ switch ( $_GET['action'] ) { update_site_option( "dashboard_blog", $dashboard_blog_id ); $options = array( 'registrationnotification', 'registration', 'add_new_users', 'menu_items', 'mu_media_buttons', 'upload_space_check_disabled', 'blog_upload_space', 'upload_filetypes', 'site_name', 'first_post', 'first_page', 'first_comment', 'first_comment_url', 'first_comment_author', 'welcome_email', 'welcome_user_email', 'fileupload_maxk', 'admin_notice_feed' ); foreach ( $options as $option_name ) { + if ( ! isset($_POST[ $option_name ]) ) + continue; $value = stripslashes_deep( $_POST[ $option_name ] ); update_site_option( $option_name, $value ); }