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: http://svn.automattic.com/wordpress/trunk@2161 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren
2005-01-29 23:17:10 +00:00
parent 7f793c6cfe
commit 0e73b09de1
2 changed files with 30 additions and 20 deletions

View File

@@ -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 );