set_site_transient() incorrectly passes prefixed transient names to hooks when not using an object cache
|Reported by:||dd32||Owned by:||dd32|
Description (last modified by dd32)
When using the hooks within set_site_transient(), developers are forced to cover two different cases, Object caching, and no object caching.
This is because the value of the $transient is overwritten in the no-object cache case, ending up with two different action names fired:
For those not using an object cache: set_site_transient__site_transient_update_plugins
For those using an object cache: set_site_transient_update_plugins.
The setted_site_transient hook also receives a prefixed value in the event of no object caching, ie, update_plugins for an object cache, _site_transient_update_plugins for no object cache.
This appears to stretch back to 
Attached is a patch for review, with some back-compat actions commented out for now
Change History (10)
- Owner set to dd32
- Resolution set to fixed
- Status changed from new to closed