Ticket #29456: 29456.diff
File 29456.diff, 1.2 KB (added by , 9 years ago) |
---|
-
src/wp-admin/options-general.php
305 305 306 306 <?php 307 307 $languages = get_available_languages(); 308 if ( ! empty( $languages ) ) { 308 if ( ! is_multisite() && defined( 'WPLANG' ) && '' !== WPLANG && 'en_US' !== WPLANG && ! in_array( WPLANG, $languages ) ) { 309 $languages[] = WPLANG; 310 } 311 if ( $languages ) { 309 312 ?> 310 313 <tr> 311 314 <th width="33%" scope="row"><label for="WPLANG"><?php _e( 'Site Language' ); ?></label></th> -
src/wp-includes/formatting.php
3361 3361 3362 3362 case 'WPLANG': 3363 3363 $allowed = get_available_languages(); 3364 if ( ! in_array( $value, $allowed ) && ! empty( $value ) ) 3364 if ( ! is_multisite() && defined( 'WPLANG' ) && '' !== WPLANG && 'en_US' !== WPLANG ) { 3365 $allowed[] = WPLANG; 3366 } 3367 if ( ! in_array( $value, $allowed ) && ! empty( $value ) ) { 3365 3368 $value = get_option( $option ); 3369 } 3366 3370 break; 3367 3371 3368 3372 case 'illegal_names':