Install: Only show the language chooser when we have access to the filesystem without asking for credentials.

fixes #29397.

git-svn-id: https://develop.svn.wordpress.org/trunk@29673 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90)
2014-09-02 18:06:36 +00:00
parent 97921c9fa5
commit c680af75e8
3 changed files with 33 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ if ( ! empty( $_REQUEST['language'] ) ) {
}
switch($step) {
case -1:
if ( empty( $language ) && ( $languages = wp_get_available_translations() ) ) {
if ( wp_can_install_language_pack() && empty( $language ) && ( $languages = wp_get_available_translations() ) ) {
setup_config_display_header( 'language-chooser' );
echo '<form id="setup" method="post" action="?step=0">';
wp_install_language_form( $languages );