Automattic / wp-memcached

Memcached Object Cache for WordPress.
https://wordpress.org/plugins/memcached/
GNU General Public License v2.0
157 stars 55 forks source link

Guard the call to apply_filters() incase it's unavailable #151

Closed dd32 closed 2 months ago

dd32 commented 1 year ago

On WordPress.org we use the object cache in places that sometimes operate with a minimal environment, and may not have apply_filters() loaded.

While this is a minimal change, and loading plugin.php for those environments might be ideal instead, the rest of the class appears to have minimal other dependencies.