mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user