[wp-trac] [WordPress Trac] #24670: Standardized plugin activation file
WordPress Trac
noreply at wordpress.org
Mon Jul 1 17:24:15 UTC 2013
#24670: Standardized plugin activation file
-----------------------------+------------------------------
Reporter: JD55 | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: |
-----------------------------+------------------------------
Comment (by JD55):
Replying to [comment:1 nacin]:
> I think register_activation_hook() is fine. The real benefit to
uninstall.php is that it makes it very clear that since the plugin is
deactivated, it is not included and you can't rely on it. You can only
rely on what is done inside uninstall.php.
That's true, and I hadn't thought of it that way.
I suppose the same thing could be accomplished by including a plugin file
inside of the activation hook function.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24670#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list