Commit Graph

16 Commits

Author SHA1 Message Date
Yahnis Elsts 38dabff869 Bump version number to 3.2 2016-12-08 12:22:54 +02:00
Yahnis Elsts 4e2ad11aee Minor: Fix line separators 2016-07-28 11:08:49 +03:00
Yahnis Elsts bcade9eb51 Bump version number to 3.1 2016-05-11 18:28:19 +03:00
Yahnis Elsts 026fb99eef Initialize the $sections property with a default value (empty array).
This way we don't need to check if it's initialised.
2016-03-25 11:45:30 +02:00
Bas de Kort 0b4a9d16cf Add: Parsedown.php (1.6.0) 2016-03-11 06:51:43 +01:00
Yahnis Elsts 86baaae1a9 Minor: Update a couple of doc comments. 2016-02-14 18:09:46 +02:00
Yahnis Elsts 3006c8b736 Bump version to 3.0 because there are backwards-incompatible changes. 2016-01-14 17:26:44 +02:00
Tamás András Horváth 87b0327f8c Merge remote-tracking branch 'refs/remotes/YahnisElsts/master' 2016-01-11 22:03:09 +01:00
Tamás András Horváth 30a6e01e44 Support i18n 2016-01-11 22:02:52 +01:00
Yahnis Elsts f2078a8d40 Extract readme parsing as a new method. 2016-01-11 19:55:06 +02:00
Yahnis Elsts c3954feaa7 Expose the "is this plugin being updated right now?" logic as a public function.
Make it a public method: isPluginBeingUpgraded(). This method returns true if the plugin associated with the update checker is currently in the process of being updated. 

This can be useful for plugins that hook into WordPress core to change how WordPress installs updates. For example, if you were using the "upgrader_pre_download" filter, you could call this method to verify that the update being downloaded is for your plugin and not another one.

Caution: The method is not guaranteed to be accurate.
2015-11-12 13:07:15 +02:00
Yahnis Elsts a9c5868910 Fix a bug in GitHub support where update installation sometimes didn't work when using a private repository. 2015-09-24 14:59:32 +03:00
Yahnis Elsts 155eff7964 Bump version number to 2.2 2015-07-28 13:43:46 +03:00
Yahnis Elsts fd5feddfef Bump all version numbers to 2.1 2015-06-26 16:37:25 +03:00
Yahnis Elsts 317a45dc45 Prevent class_exists() from calling autoloaders.
The update checker uses class_exists in several ways:

- As a guard clause around `class Whatever` definitions. This ensures we don't try to define a class that has already been loaded by a different plugin. In this case, autoloading is not necessary because we already know how to load the class. Also, we *want to* load our version of that class if possible - the version that gets loaded by somebody else's autoloader might be different and incompatible.
- As a guard clause before `require` statements that include a class. This is conceptually the same as the previous example. 
- To enable optional features if Debug Bar is active. The latest compatible version of Debug Bar doesn't use autoloading, so it would again be unnecessary in this case.
2015-06-17 12:30:05 +03:00
Yahnis Elsts 03dd38fd71 Add support for updating plugins hosted on GitHub.
- Added experimental GitHub support. The new PucGitHubChecker subclass can check a GitHub repository for plugin updates. Depending on configuration, it will use either the latest release, the latest tag, or the specified branch. It can also automagically extract version details (description, changelog, etc) from a number of different locations - release names, plugin headers, readme.txt, changelog.md and more.
- The "slug" field of the metadata file is no longer used. The update checker will now use the slug passed to the class constructor, or generate a slug based on the plugin file name.
- Other minor changes to slug handling.
- Version bump to 2.0.
2015-02-10 11:46:46 +02:00