4.9
- Switched from a deprecated GitHub API authentication mechanism that used the
access_token
query parameter to using theAuthorization
HTTP header. This should stop GitHub sending you email notices about authentication via URL query parameters. Props to @jccit for the initial implementation. - Fixed a fatal error "Call to a member function isMuPlugin() on null" that could affect some Multisite installations.
- Added a random offset to the update check schedule to help prevent daily traffic spikes. This doesn't change how often PUC checks for updates, but it spreads the checks more evenly throughout the day. Props to @DavidAnderson684 for the initial suggestion and feedback.
- Added a new filter:
first_check_time
(full name:puc_first_check_time-$slug
). It's passed one argument that is the calculated Unix timestamp of the first update check. Return a new timestamp to make the first check happen at a different time.//Usage example: $updateChecker->addFilter('first_check_time', function($unusedTimestamp) { //Always check for updates 1 hour after the first activation. return time() + 3600; });