mirror of
git://develop.git.wordpress.org/
synced 2025-02-26 01:22:47 +01:00
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:
parent
1ba2f5c853
commit
6dfb2d6ec5
@ -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…
x
Reference in New Issue
Block a user