Make WordPress Core

Ticket #38929: 38929.2.diff

File 38929.2.diff, 851 bytes (added by ocean90, 8 years ago)
  • src/wp-settings.php

     
    8080 *                                    Default true.
    8181 */
    8282if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) ) {
    83 // For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
     83        // For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
    8484        WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
     85
     86        // Re-initialize any hooks added manually by advanced-cache.php
     87        if ( $wp_filter ) {
     88                $wp_filter = WP_Hook::build_preinitialized_hooks( $wp_filter );
     89        }
    8590}
    8691
    8792// Define WP_LANG_DIR if not set.