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
This commit is contained in:
John Blackbourn 2014-08-17 14:00:16 +00:00
parent d54e72183a
commit 136cb144d5
1 changed files with 5 additions and 1 deletions

View File

@ -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() );