3.0
Breaking changes
This release includes a few changes that break backwards compatibility. In practice, most plugins will not be affected.
- Removed several class name aliases:
PluginUpdateChecker
,PluginUpdate
andPluginInfo
. Use the versioned class names instead, e.g.PluginUpdateChecker_3_0
. - Moved the
$checkPeriod
,$throttleRedundantChecks
,$throttledCheckPeriod
fields and themaybeCheckForUpdates()
method fromPluginUpdateChecker
to a new class calledPucScheduler
. - Removed the
$triggerErrors
parameter from thefromJson()
method. Now the update checker will always trigger a PHP notice if your metadata file does not contain valid JSON or is missing a required key.
Other changes
- Added basic i18n support. French and Hungarian translations have been added by contributors.
- Added an
isPluginBeingUpgraded()
method. It returnstrue
if the plugin is being updated right now. This can be useful for plugins that hook into WordPress core to change how WordPress installs updates. Caution: The method is not guaranteed to be accurate. - Fixed a GitHub integration bug where update installation sometimes didn't work when using a private GitHub repository.
- Fixed a rare issue with same-host restriction causing updates to fail.
- Fixed a "creating default object from empty value" notice when trying to parse invalid JSON.
- Replaced conditional calls to
admin_url()
/network_admin_url()
withself_admin_url()
. - The
debug-bar-plugin.php
file is now optional. If you're not using Debug Bar, you can remove the file and the library will keep working. Previously it would crash if the file was missing. - The status message that shows up after clicking "check for updates" can now be dismissed by clicking "x".
- Lots of refactoring.