Automattic / batcache

A memcached HTML page cache for WordPress.
http://wordpress.org/extend/plugins/batcache/
284 stars 104 forks source link

Use Plugins API rather than the global variable #76

Closed sboisvert closed 8 years ago

sboisvert commented 8 years ago

WordPress 4.6 moves wp-includes/plugins.php inclusion before the loading of advanced-cache.php which means the Plugins API is available to use. To keep backwards compatibility we check for the existence of add_filter(). Props @aaronjorbin @danielbachhuber

aaronjorbin commented 8 years ago

lgtm

skeltoac commented 8 years ago

👍

aaronjorbin commented 8 years ago

@joshbetz @skeltoac Can this be synced across to the version on wordpress.org/plugins ? Now that 4.7 is in beta, we saw the first reported issue

skeltoac commented 7 years ago

@aaronjorbin I synced this to trunk along with a few other changes. Anything you care to add or test before we tag it?