Make WordPress Core

Ticket #29456: wplang-test.php

File wplang-test.php, 249 bytes (added by tenpura, 10 years ago)

wplang-test.php

Line 
1<?php
2if ( !is_multisite() ) {
3        if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) )
4                add_filter( 'locale', create_function( '', 'return WPLANG;' ) );
5        elseif ( defined( 'WPLANG' ) )
6                add_filter( 'locale', create_function( '', 'return "en_US";' ) );
7}