diff --git a/src/wp-includes/l10n.php b/src/wp-includes/l10n.php index 30cacf4a67..2c227bc1da 100644 --- a/src/wp-includes/l10n.php +++ b/src/wp-includes/l10n.php @@ -53,10 +53,11 @@ function get_locale() { // If $wpdb hasn't been initialised yet, we can only return what we have. if ( ! $wpdb ) { if ( ! $locale ) { - return 'en_US'; + $locale = 'en_US'; } - return $locale; + /** This filter is documented in wp-includes/l10n.php */ + return apply_filters( 'locale', $locale ); } // If multisite, check options.