WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/02/2014 06:06:36 PM (5 years ago)
Author:
ocean90
Message:

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

fixes #29397.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/install.php

    r29669 r29673  
    190190    case 0: // Step 0
    191191
    192         if ( empty( $langugage ) && ( $languages = wp_get_available_translations() ) ) {
     192        if ( wp_can_install_language_pack() && empty( $langugage ) && ( $languages = wp_get_available_translations() ) ) {
    193193            display_header( 'language-chooser' );
    194194            echo '<form id="setup" method="post" action="?step=1">';
Note: See TracChangeset for help on using the changeset viewer.