diff --git a/src/wp-settings.php b/src/wp-settings.php index 9fe4080f3f..8dd0f40317 100644 --- a/src/wp-settings.php +++ b/src/wp-settings.php @@ -80,8 +80,13 @@ wp_debug_mode(); * Default true. */ if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) ) { -// For an advanced caching plugin to use. Uses a static drop-in because you would only want one. + // For an advanced caching plugin to use. Uses a static drop-in because you would only want one. WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' ); + + // Re-initialize any hooks added manually by advanced-cache.php + if ( $wp_filter ) { + $wp_filter = WP_Hook::build_preinitialized_hooks( $wp_filter ); + } } // Define WP_LANG_DIR if not set.