From 136cb144d5eb4c2dc1817512f7755fc788c50c78 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 17 Aug 2014 14:00:16 +0000 Subject: [PATCH] Avoid a PHP notice if you manually navigate to `/wp-admin/install.php?step=2`. See #28577. Built from https://develop.svn.wordpress.org/trunk@29516 git-svn-id: http://core.svn.wordpress.org/trunk@29292 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/install.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-admin/install.php b/wp-admin/install.php index 3a0eb73681..a846abb088 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -209,7 +209,11 @@ switch($step) { display_setup_form(); break; case 2: - $loaded_language = wp_install_load_language( $_REQUEST['language'] ); + if ( !empty( $_REQUEST['language'] ) ) { + $loaded_language = wp_install_load_language( $_REQUEST['language'] ); + } else { + $loaded_language = 'en_US'; + } if ( ! empty( $wpdb->error ) ) wp_die( $wpdb->error->get_error_message() );