[wp-hackers] Will Activation Hook Be Executed During Plugin Upgradation?
gcorne at bu.edu
Mon Sep 20 21:09:29 UTC 2010
I don't think it is a good idea to assume that upgrades to plugins/themes are made through the WP admin interface.
On Sep 20, 2010, at 4:36 PM, scribu wrote:
> On Mon, Sep 20, 2010 at 11:28 PM, Andrew Nacin <wp at andrewnacin.com> wrote:
>> On Mon, Sep 20, 2010 at 4:25 PM, Ozh <ozh at ozh.org> wrote:
>>> Never payed attention to it before, but is there a semantic/usage
>>> difference between "update" and "upgrade" in WP? "Update a plugin" vs
>>> "Upgrade core"?
>> We're gravitating toward the term "update" everywhere.
> That might be a good idea for the UI, since it sounds lighter, but I think
> functions should continue to use 'upgrade'.
> 'update' is part of the CRUD family, so it's perfect for update_option()
> 'upgrade' has a direction and therefore an opposite: 'downgrade' so it's
> more descriptive.
> So, my revised proposal:
> which internally would call do_action(), like Dougal suggested. Theme
> activation hooks are another can of worms.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers