WordPress.org

Make WordPress Core

Changeset 39370


Ignore:
Timestamp:
11/29/2016 05:38:16 AM (4 years ago)
Author:
dd32
Message:

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

Props dd32, ocean90.
Merges [39369] to the 4.7 branch.
Fixes #38929.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-settings.php

    r39212 r39370  
    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.