Install: Don't ask for the user's language a second time if they chose English originally.

see #28577.


git-svn-id: https://develop.svn.wordpress.org/trunk@29058 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-07-10 09:24:55 +00:00
parent 466659cee6
commit 253e09f192

View File

@ -186,10 +186,14 @@ switch($step) {
if ( isset( $_REQUEST['noapi'] ) ) {
$step_1 .= '&noapi';
}
if ( $loaded_language ) {
$step_1 .= '&language=' . $loaded_language;
$install .= '?language=' . $loaded_language;
} else {
$install .= '?language=en_US';
}
$tryagain_link = '</p><p class="step"><a href="' . $step_1 . '" onclick="javascript:history.go(-1);return false;" class="button button-large">' . __( 'Try again' ) . '</a>';
if ( empty( $prefix ) )