Skip to content

3.0

Compare
Choose a tag to compare
@YahnisElsts YahnisElsts released this 01 Mar 14:31
· 432 commits to master since this release

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 and PluginInfo. Use the versioned class names instead, e.g. PluginUpdateChecker_3_0.
  • Moved the $checkPeriod, $throttleRedundantChecks, $throttledCheckPeriod fields and the maybeCheckForUpdates() method from PluginUpdateChecker to a new class called PucScheduler.
  • Removed the $triggerErrors parameter from the fromJson() 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 returns true 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() with self_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.