Apply filter on locale, fixes #2383
git-svn-id: http://svn.automattic.com/wordpress/trunk@4588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1218d77fd5
commit
81654225ea
|
@ -3,7 +3,7 @@ function get_locale() {
|
|||
global $locale;
|
||||
|
||||
if (isset($locale))
|
||||
return $locale;
|
||||
return apply_filters( 'locale', $locale );
|
||||
|
||||
// WPLANG is defined in wp-config.
|
||||
if (defined('WPLANG'))
|
||||
|
|
Loading…
Reference in New Issue