From 5e1fa70cd52faa80996f5a46daf46121d7e215b9 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 29 Jan 2005 23:17:10 +0000 Subject: [PATCH] Set the locale and load the default text domain after plugins are loaded so that plugins can manipulate the locale. Bug 765. git-svn-id: https://develop.svn.wordpress.org/trunk@2161 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/wp-l10n.php | 44 ++++++++++++++++++++++------------------- wp-settings.php | 6 ++++++ 2 files changed, 30 insertions(+), 20 deletions(-) diff --git a/wp-includes/wp-l10n.php b/wp-includes/wp-l10n.php index 36152744c3..827ae1fa04 100644 --- a/wp-includes/wp-l10n.php +++ b/wp-includes/wp-l10n.php @@ -1,20 +1,27 @@ diff --git a/wp-settings.php b/wp-settings.php index 7d4ae09dbf..d99487dde7 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -101,6 +101,12 @@ if ( get_settings('active_plugins') ) { define('TEMPLATEPATH', get_template_directory()); +// Load the default text localization domain. +load_default_textdomain(); + +// Pull in locale data after loading text domain. +require_once(ABSPATH . WPINC . '/locale.php'); + if ( !get_magic_quotes_gpc() ) { $_GET = add_magic_quotes($_GET ); $_POST = add_magic_quotes($_POST );