WP_Hook: Re-initialize any actions added directly to $wp_filter
by advanced-cache.php
.
Props dd32, ocean90. Fixes #38929. git-svn-id: https://develop.svn.wordpress.org/trunk@39369 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
01094b40c1
commit
2d854ef714
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user