Ticket #29487: 29487.2.diff
File 29487.2.diff, 1.0 KB (added by , 10 years ago) |
---|
-
src/wp-admin/install.php
184 184 $langugage = ''; 185 185 if ( ! empty( $_REQUEST['language'] ) ) { 186 186 $langugage = preg_replace( '/[^a-zA-Z_]/', '', $_REQUEST['language'] ); 187 } elseif ( isset( $GLOBALS['wp_local_package'] ) ) { 188 $language = $GLOBALS['wp_local_package']; 187 189 } 188 190 189 191 switch($step) { -
src/wp-admin/setup-config.php
90 90 $language = ''; 91 91 if ( ! empty( $_REQUEST['language'] ) ) { 92 92 $language = preg_replace( '/[^a-zA-Z_]/', '', $_REQUEST['language'] ); 93 } elseif ( isset( $GLOBALS['wp_local_package'] ) ) { 94 $language = $GLOBALS['wp_local_package']; 93 95 } 96 94 97 switch($step) { 95 98 case -1: 96 99 if ( wp_can_install_language_pack() && empty( $language ) && ( $languages = wp_get_available_translations() ) ) {