Make WordPress Core


Ignore:
Timestamp:
11/29/2016 05:36:46 AM (8 years ago)
Author:
dd32
Message:

WP_Hook: Re-initialize any actions added directly to $wp_filter by advanced-cache.php.

Props dd32, ocean90.
Fixes #38929.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r39212 r39369  
    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
Note: See TracChangeset for help on using the changeset viewer.