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:
parent
d54e72183a
commit
136cb144d5
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue