72 | 72 | * Filters whether to enable loading of the advanced-cache.php drop-in. |
73 | 73 | * |
74 | 74 | * This filter runs before it can be used by plugins. It is designed for non-web |
75 | 75 | * run-times. If false is returned, advanced-cache.php will never be loaded. |
76 | 76 | * |
77 | 77 | * @since 4.6.0 |
78 | 78 | * |
79 | 79 | * @param bool $enable_advanced_cache Whether to enable loading advanced-cache.php (if present). |
80 | 80 | * Default true. |
81 | 81 | */ |
82 | 82 | if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) ) { |
83 | 83 | // For an advanced caching plugin to use. Uses a static drop-in because you would only want one. |
84 | 84 | WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' ); |
85 | 85 | } |
86 | 86 | |
97 | 103 | require( ABSPATH . WPINC . '/pomo/mo.php' ); |
98 | 104 | require( ABSPATH . WPINC . '/class-phpass.php' ); |
99 | 105 | |
100 | 106 | // Include the wpdb class and, if present, a db.php database drop-in. |
101 | 107 | global $wpdb; |
102 | 108 | require_wp_db(); |
103 | 109 | |
104 | 110 | // Set the database table prefix and the format specifiers for database table columns. |
105 | 111 | $GLOBALS['table_prefix'] = $table_prefix; |
106 | 112 | wp_set_wpdb_vars(); |
107 | 113 | |
108 | 114 | // Start the WordPress object cache, or an external object cache if the drop-in is present. |
109 | 115 | wp_start_object_cache(); |
110 | 116 | |
111 | 117 | // Attach the default filters. |