summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-settings.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-14 07:09:38 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-14 07:09:38 +0000
commit25a558f83f0dc55ffe4a849b1c652f227bef3e33 (patch)
tree14a7f1e8aa0688b6c5c2889b43def7debd760d71 /wp-inst/wp-settings.php
parente8e403c56f499f37aa39e91b9bdfe9f1b5e218e6 (diff)
Merged changes from WP SVN.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@22 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-settings.php')
-rw-r--r--wp-inst/wp-settings.php18
1 files changed, 13 insertions, 5 deletions
diff --git a/wp-inst/wp-settings.php b/wp-inst/wp-settings.php
index 1c96dfd..2eaca73 100644
--- a/wp-inst/wp-settings.php
+++ b/wp-inst/wp-settings.php
@@ -201,16 +201,24 @@ $_POST = add_magic_quotes($_POST );
$_COOKIE = add_magic_quotes($_COOKIE);
$_SERVER = add_magic_quotes($_SERVER);
-function shutdown_action_hook() {
- do_action('shutdown');
-}
-register_shutdown_function('shutdown_action_hook');
-
$wp_query = new WP_Query();
$wp_rewrite = new WP_Rewrite();
$wp = new WP();
$wp_roles = new WP_Roles();
+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');
+
+function shutdown_action_hook() {
+ do_action('shutdown');
+}
+register_shutdown_function('shutdown_action_hook');
+
// Everything is loaded and initialized.
do_action('init');
?>