A custom update checker for WordPress plugins. Useful if you don't want to host your project in the official WP repository, but would still like it to support automatic updates. Despite the name, it also works with themes.
Go to file
Yahnis Elsts 954aa4a192 Fixed automatic background updates not working for plugins that use this library.
Background (i.e. unattended) plugin updates require an additional $update->plugin field to be set to plugin file name relative to the /wp-content/plugins directory. Fixed by adding a $filename property to the PluginInfo and PluginUpdate classes and updating toWpFormat() to return it as "plugin". Apparently WordPress update API introduced the field a couple of minor versions back, but I didn't notice because it's used *only* by the background updater and ignored otherwise. 

I named the internal variable "filename" instead of "plugin" because "plugin" is very vague. It doesn't really tell you if the variable contains a plugin slug, plugin name, the full plugin filename, a partial filename, basename or something else. "filename" is a bit less ambiguous, though not perfect.

Bumped version to 1.6.
2014-10-24 15:53:16 +03:00
css Fix a conflict with WordPress' "quick edit" feature. 2013-09-27 03:08:51 -07:00
js Actually, lets prefix our custom Debug Bar IDs with "puc" to be completely sure we'll avoid name collisions. 2012-10-27 12:30:35 +00:00
README.md Add a readme for GitHub. This is just a stub; people who want to use the library should read the relevant blog post. 2012-11-06 00:42:20 -08:00
composer.json Add a Composer manifest 2014-09-10 18:41:18 +03:00
debug-bar-panel.php Added an option to check updates less frequently if there's an update already available. 2013-11-29 04:13:32 -08:00
debug-bar-plugin.php Fix a conflict with WordPress' "quick edit" feature. 2013-09-27 03:08:51 -07:00
plugin-update-checker.php Fixed automatic background updates not working for plugins that use this library. 2014-10-24 15:53:16 +03:00

README.md

Plugin Update Checker

This is a custom update checker library for WordPress plugins. It lets you add automatic update notifications and one-click upgrades to your commercial and private plugins. All you need to do is put your plugin details in a JSON file, place the file on your server, and pass the URL to the library. The library periodically checks the URL to see if there's a new version available and displays an update notification to the user if necessary.

From the users' perspective, it works just like with plugins hosted on WordPress.org. The update checker uses the default plugin upgrade UI that will already be familiar to most WordPress users.

See this blog post for more information and usage instructions.