Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Why override 'pre_set_site_transient_update_plugins' array param with object? #18

Open
champsupertramp opened this issue Mar 16, 2016 · 0 comments

Comments

@champsupertramp
Copy link

Hi @pippinsplugins,

I'd like to know why it checks for object arguments when this filter pre_set_site_transient_update_plugins returns array?
http://hookr.io/filters/pre_set_site_transient_update_plugins/#usage

I found an issue where it swaps the existing passed array with an object that's why it always lookup for an update on every load of the /plugin.php page and disrespects the last_time expiration when checking in transient?
https://github.com/easydigitaldownloads/EDD-License-handler/blob/master/EDD_SL_Plugin_Updater.php#L83

https://github.com/easydigitaldownloads/EDD-License-handler/blob/master/EDD_SL_Plugin_Updater.php#L138

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant