Avoid a PHP notice if you manually navigate to `/wp-admin/install.php?step=2`. See #28577.

git-svn-id: https://develop.svn.wordpress.org/trunk@29516 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2014-08-17 13:59:10 +00:00
parent 1ba2f5c853
commit 6dfb2d6ec5
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() );