Make WordPress Core


Ignore:
Timestamp:
06/12/2016 02:42:02 AM (8 years ago)
Author:
jorbin
Message:

Bootstrap/Load. Adjust filters added in [37626].

These adjustments improve the documentation for the filters and adjust the names make them more consistent with other filters already in core.

See #34936.
Props DrewAPicture, ocean90, jorbin

File:
1 edited

Legend:

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

    r37626 r37690  
    7272
    7373/**
    74  * Bypass the loading of advanced-cache.php
    75  *
    76  * This filter should *NOT* be used by plugins. It is designed for non-web
    77  * runtimes. If true is returned, advance-cache.php will never be loaded.
     74 * Filters whether to enable loading of the advanced-cache.php drop-in.
     75 *
     76 * This filter runs before it can be used by plugins. It is designed for non-web
     77 * run-times. If false is returned, advance-cache.php will never be loaded.
    7878 *
    7979 * @since 4.6.0
    8080 *
    81  * @param bool True to bypass advanced-cache.php
    82  */
    83 if ( WP_CACHE && ! apply_filters( 'bypass_advanced_cache', false )  ) {
     81 * @param bool $enable_advanced_cache Whether to enable loading advanced-cache.php (if present).
     82 *                                    Default true.
     83 */
     84if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) ) {
    8485// For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
    8586    _backup_plugin_globals();
Note: See TracChangeset for help on using the changeset viewer.