Skip to content

4.10

Compare
Choose a tag to compare
@YahnisElsts YahnisElsts released this 21 Aug 12:47
· 130 commits to master since this release
  • Added support for the new auto-update feature introduced in WordPress 5.5.
  • Added support for the "Requires PHP" header field.
  • Added a new factory method buildFromHeader($filePath, $args) that lets you specify the repository URL in the plugin header and set other update checker arguments using an associative array. Example:
    /*
    Plugin Name: Example Plugin
    Description: Lorem ipsum 
    Version: 1.0
    GitHub URI: https://github.com/foo/bar/
    */
    //...
    $updateChecker = Puc_v4p10_Factory::buildFromHeader(
    	__FILE__,
    	array(
    		'slug'         => 'plugin-slug-here',
    		'checkPeriod'  => 12,
    		'optionName'   => 'abc-custom-option',
    	)
    );
  • Fixed several fatal errors that could happen when the update checker itself was upgraded to a different version during a plugin or theme update. These errors only showed up when installing an update and typically didn't prevent the update from being installed.
  • Fixed a bug where the hostname used in the metadata URL sometimes wasn't correctly whitelisted if there were at least two active plugins using the same version of PUC.
  • Improved the way the update checker determines the patch number to add to the "Tested up to" value. Now it's even more likely to find the real patch version number for the specified WordPress version and less likely to fall back to using .999.
  • Added Simplified Chinese translation. Props to @seatonjiang.
  • Updated Spanish translations. Props to @YordanSoares.