mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 02:34:38 +00:00
Load locale specific php code in global context. fixes #3488
git-svn-id: https://develop.svn.wordpress.org/trunk@4699 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -242,6 +242,11 @@ define('STYLESHEETPATH', get_stylesheet_directory());
|
||||
// Load the default text localization domain.
|
||||
load_default_textdomain();
|
||||
|
||||
$locale = get_locale();
|
||||
$locale_file = ABSPATH . LANGDIR . "/$locale.php";
|
||||
if ( is_readable($locale_file) )
|
||||
require_once($locale_file);
|
||||
|
||||
// Pull in locale data after loading text domain.
|
||||
require_once(ABSPATH . WPINC . '/locale.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user