[wp-hackers] Will Activation Hook Be Executed During Plugin Upgradation?

Cornelius, Gregory 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()
> etc.
> 
> 'upgrade' has a direction and therefore an opposite: 'downgrade' so it's
> more descriptive.
> 
> So, my revised proposal:
> register_upgrade_hook()<http://core.trac.wordpress.org/ticket/14912>,
> which internally would call do_action(), like Dougal suggested. Theme
> activation hooks are another can of worms.
> 
> 
> -- 
> http://scribu.net
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list