[wp-trac] Re: [WordPress Trac] #4389: Improve plugin activate and
deactivate hooks
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 4 15:36:03 GMT 2007
#4389: Improve plugin activate and deactivate hooks
--------------------------+-------------------------------------------------
Reporter: Otto42 | Owner: anonymous
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Optimization | Version:
Severity: major | Resolution: invalid
Keywords: |
--------------------------+-------------------------------------------------
Comment (by markjaquith):
{{{__FILE__}} is dynamic and the hook is dynamic. So whatever the
filename is when you deactivate, that's the filename that'll be used for
the hook.
If you rename (or delete) an active plugin, it will cease to be used, and
will not fire the deactivation hook (because we don't know where the
plugin is, and thus can't find its deactivation hook). That's a separate
issue (and not one I think we should fix... being able to delete/rename a
plugin is necessary if an FTP edit causes your WP admin to deliver a fatal
error.
--
Ticket URL: <http://trac.wordpress.org/ticket/4389#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list