[wp-hackers] Hook being called twice on activate, once on deactivate
mark waterous
mark at watero.us
Thu Oct 29 19:58:03 UTC 2009
That fixes the constant returning the proper string, but is the activation
hook supposed to be run twice like that? And again on deactivation if there
is no deactivation hook?
--
Mark (http://mark.watero.us/)
> -----Original Message-----
> Sent: Thursday, October 29, 2009 12:39 PM
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] Hook being called twice on activate, once on
> deactivate
>
> A solution might be to summon wpdb, before defining the constant:
>
> global $wpdb;
>
> I assume your problem is caused by the different scope that the plugin
> is activated in.
>
> --
> http://scribu.net
More information about the wp-hackers
mailing list