Install: Only show the language chooser when we have access to the filesystem without asking for credentials.
fixes #29397. Built from https://develop.svn.wordpress.org/trunk@29673 git-svn-id: http://core.svn.wordpress.org/trunk@29448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -189,7 +189,7 @@ if ( ! empty( $_REQUEST['language'] ) ) {
|
||||
switch($step) {
|
||||
case 0: // Step 0
|
||||
|
||||
if ( empty( $langugage ) && ( $languages = wp_get_available_translations() ) ) {
|
||||
if ( wp_can_install_language_pack() && empty( $langugage ) && ( $languages = wp_get_available_translations() ) ) {
|
||||
display_header( 'language-chooser' );
|
||||
echo '<form id="setup" method="post" action="?step=1">';
|
||||
wp_install_language_form( $languages );
|
||||
|
||||
Reference in New Issue
Block a user