Permalink
Browse files

Allow for plugins to kick in before everything if define in wp-config

git-svn-id: http://svn.automattic.com/wordpress/trunk@2342 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 067e48e commit 70a449d8d802d0afd29292d4b57b9544250c87c0 saxmatt committed Feb 15, 2005
Showing with 11 additions and 1 deletion.
  1. +11 −1 wp-settings.php
View
@@ -31,6 +31,10 @@ function timer_start() {
// Change to E_ALL for development/debugging
error_reporting(E_ALL ^ E_NOTICE);
+// For an advanced caching plugin to use, static because you would only want one
+if ( defined('WP_CACHE') )
+ require (ABSPATH . 'wp-content/advanced-cache.php');
+
define('WPINC', 'wp-includes');
require_once (ABSPATH . WPINC . '/wp-db.php');
@@ -89,14 +93,15 @@ function timer_start() {
require (ABSPATH . WPINC . '/version.php');
if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) :
-
// Used to guarantee unique hash cookies
$cookiehash = md5(get_settings('siteurl')); // Remove in 1.4
define('COOKIEHASH', $cookiehash);
endif;
require (ABSPATH . WPINC . '/vars.php');
+do_action('core_files_loaded');
+
// Check for hacks file if the option is enabled
if (get_settings('hack_file')) {
if (file_exists(ABSPATH . '/my-hacks.php'))
@@ -111,6 +116,11 @@ function timer_start() {
}
}
+if ( defined('WP_CACHE') && function_exists('wp_cache_postload') )
+ wp_cache_postload();
+
+do_action('plugins_loaded');
+
define('TEMPLATEPATH', get_template_directory());
// Load the default text localization domain.

0 comments on commit 70a449d

Please sign in to comment.