[wp-cvs] wordpress wp-settings.php,1.75,1.76
Matthew Mullenweg
saxmatt at users.sourceforge.net
Tue Feb 15 00:47:00 GMT 2005
Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23461
Modified Files:
wp-settings.php
Log Message:
Allow for plugins to kick in before everything if define in wp-config
Index: wp-settings.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-settings.php,v
retrieving revision 1.75
retrieving revision 1.76
diff -C2 -d -r1.75 -r1.76
*** wp-settings.php 7 Feb 2005 07:46:41 -0000 1.75
--- wp-settings.php 15 Feb 2005 00:46:58 -0000 1.76
***************
*** 32,35 ****
--- 32,39 ----
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');
***************
*** 90,94 ****
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
--- 94,97 ----
***************
*** 98,101 ****
--- 101,106 ----
require (ABSPATH . WPINC . '/vars.php');
+ do_action('core_files_loaded');
+
// Check for hacks file if the option is enabled
if (get_settings('hack_file')) {
***************
*** 112,115 ****
--- 117,125 ----
}
+ if ( defined('WP_CACHE') && function_exists('wp_cache_postload') )
+ wp_cache_postload();
+
+ do_action('plugins_loaded');
+
define('TEMPLATEPATH', get_template_directory());
More information about the cvs
mailing list