* @access private
*/
function wp_start_object_cache() {
+ global $wp_filter;
+
$first_init = false;
if ( ! function_exists( 'wp_cache_init' ) ) {
if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) {
if ( function_exists( 'wp_cache_init' ) ) {
wp_using_ext_object_cache( true );
}
+
+ // Re-initialize any hooks added manually by object-cache.php
+ if ( $wp_filter ) {
+ $wp_filter = WP_Hook::build_preinitialized_hooks( $wp_filter );
+ }
}
$first_init = true;