[wp-hackers] readme.txt: "Requires PHP 5 tag"
jcanals at alkivia.com
Fri Jul 17 00:04:03 UTC 2009
What you described is exactly what I do on my plugins. I think is the
best way to track plugin updates, changes and activation/deactivation.
Also, doing this way, you can track if the plugin was manually updated
(As the plugin version will change).
Jordi Canals [Txanny]
2009/7/16 Will Anderson <wp-hackers at itsananderson.com>:
> While it would be convenient to have an extra parameter or something, I
> think the idea was to simulate the "correct" manual upgrade procedure. That
> is, disable the plugin, upload the update, then enable it again. This is
> essentially what happens when you use the auto-upgrader, except that you
> don't have to do any of it manually.
> One possible way to keep track of updates, first time installs, and simple
> disable/enable actions is to use an option that contains the current version
> number. Then when the plugin is enabled you check the version in the
> database. If the option doesn't exist, the plugin has most likely just been
> installed. If it exists, but is an older version, an update has most likely
> been done. If it's the same version, then the user probably just disabled
> the plugin and then enabled it again without making any changes.
> I can't see any issues with what I just described, but if I'm off base in
> any way, by all means, fire away!
> Will Anderson
More information about the wp-hackers