diff --git a/wp-admin/ms-edit.php b/wp-admin/ms-edit.php index 8cab8aaa7d..395bf71a31 100644 --- a/wp-admin/ms-edit.php +++ b/wp-admin/ms-edit.php @@ -23,7 +23,7 @@ switch ( $_GET['action'] ) { if ( empty( $_POST ) ) wp_die( __("You probably need to go back to the options page") ); - if ( isset($_POST['WPLANG']) ) + if ( isset($_POST['WPLANG']) && ( '' === $_POST['WPLANG'] || in_array($_POST['WPLANG'], get_available_languages()) ) ) update_site_option( "WPLANG", $_POST['WPLANG'] ); if ( is_email( $_POST['admin_email'] ) ) diff --git a/wp-admin/ms-options.php b/wp-admin/ms-options.php index 2bc3efc356..df4c176054 100644 --- a/wp-admin/ms-options.php +++ b/wp-admin/ms-options.php @@ -252,19 +252,15 @@ if (isset($_GET['updated'])) {