Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rearrange load order. Init classes before loading the text domain and…

… setting the template path.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 98aa7f597a3e2d0b92c5ca3a0b99da89c3ae9121 1 parent 0218d1e
ryan authored
Showing with 13 additions and 13 deletions.
  1. +13 −13 wp-settings.php
View
26 wp-settings.php
@@ -131,14 +131,6 @@ function timer_start() {
do_action('plugins_loaded');
-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 already slashed, strip.
if ( get_magic_quotes_gpc() ) {
$_GET = stripslashes_deep($_GET );
@@ -153,16 +145,24 @@ function timer_start() {
$_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');
?>
Please sign in to comment.
Something went wrong with that request. Please try again.