Make WordPress Core


Ignore:
Timestamp:
09/03/2014 08:02:53 AM (10 years ago)
Author:
nacin
Message:

Allow language specified by the WPLANG constant (but not installed) to be chosen.

fixes #29456.

File:
1 edited

Legend:

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

    r29630 r29691  
    306306<?php
    307307$languages = get_available_languages();
    308 if ( ! empty( $languages ) ) {
     308if ( ! is_multisite() && defined( 'WPLANG' ) && '' !== WPLANG && 'en_US' !== WPLANG && ! in_array( WPLANG, $languages ) ) {
     309    $languages[] = WPLANG;
     310}
     311if ( $languages ) {
    309312    ?>
    310313    <tr>
Note: See TracChangeset for help on using the changeset viewer.