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

scribu scribu at gmail.com
Mon Sep 20 20:11:10 UTC 2010


On Mon, Sep 20, 2010 at 8:29 PM, Peter Westwood
<peter.westwood at ftwr.co.uk>wrote:

> Actually, I would only expect activation hooks to fire when the plugin is
> activated and not on upgrade.
>
> Just like deactivation hooks should only fire on deactivation.
>
> So the bug would be them firing at any point apart from real activation.
>

That makes sense, although I (along with a lot of other plugin authors I
imagine) overload the activation hook with procedures meant to be done when
the plugin is updated.

I think we should introduce a register_update_hook().


-- 
http://scribu.net


More information about the wp-hackers mailing list