WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2014 08:02:53 AM (5 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-includes/formatting.php

    r29479 r29691  
    33623362        case 'WPLANG':
    33633363            $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 ) ) {
    33653368                $value = get_option( $option );
     3369            }
    33663370            break;
    33673371
Note: See TracChangeset for help on using the changeset viewer.