Ticket #29362: 29362.2.patch
File 29362.2.patch, 899 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/options-general.php
308 308 <th width="33%" scope="row"><label for="WPLANG"><?php _e( 'Site Language' ); ?></label></th> 309 309 <td> 310 310 <?php 311 $l ocale = get_locale();312 if ( ! in_array( $l ocale, $languages ) ) {313 $l ocale= '';311 $lang = get_option( 'WPLANG' ); 312 if ( ! in_array( $lang, $languages ) ) { 313 $lang = ''; 314 314 } 315 315 316 316 wp_dropdown_languages( array( 317 317 'name' => 'WPLANG', 318 318 'id' => 'WPLANG', 319 'selected' => $l ocale,319 'selected' => $lang, 320 320 'languages' => $languages, 321 321 'translations' => $translations, 322 322 'show_available_translations' => ( ! is_multisite() || is_super_admin() ) && wp_can_install_language_pack(),