Make WordPress Core

Changeset 2342


Ignore:
Timestamp:
02/15/2005 12:46:58 AM (20 years ago)
Author:
saxmatt
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r2240 r2342  
    3131// Change to E_ALL for development/debugging
    3232error_reporting(E_ALL ^ E_NOTICE);
     33
     34// For an advanced caching plugin to use, static because you would only want one
     35if ( defined('WP_CACHE') )
     36    require (ABSPATH . 'wp-content/advanced-cache.php');
    3337
    3438define('WPINC', 'wp-includes');
     
    9094
    9195if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) :
    92 
    9396    // Used to guarantee unique hash cookies
    9497    $cookiehash = md5(get_settings('siteurl')); // Remove in 1.4
     
    97100
    98101require (ABSPATH . WPINC . '/vars.php');
     102
     103do_action('core_files_loaded');
    99104
    100105// Check for hacks file if the option is enabled
     
    111116    }
    112117}
     118
     119if ( defined('WP_CACHE') && function_exists('wp_cache_postload') )
     120    wp_cache_postload();
     121
     122do_action('plugins_loaded');
    113123
    114124define('TEMPLATEPATH', get_template_directory());
Note: See TracChangeset for help on using the changeset viewer.