[wp-trac] [WordPress Trac] #15372: Add new plugin header parameter BlogOnly
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 10 11:30:55 UTC 2010
#15372: Add new plugin header parameter BlogOnly
-----------------------------+----------------------------------------------
Reporter: raido357 | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 3.0.1
Severity: major | Keywords: has-patch
-----------------------------+----------------------------------------------
Comment(by raido357):
I have plugin which uses some extra database tables which have to be
created, when plugin is activated. But via network activation plugin is
activated but action "activate_myplugin" doesn't trigger, so no db tables
are created and plugin is broken.
Same goes with deactivation.
For activation i could use workaround by adding admin_head action and call
installation function there but for deactivating i can't call
uninstallation that way.
So to keep people with no clue out of headache, I would simply disable
network activation.
I understand if this is really not needed, i'll just have to add huge
warning to plugin installation how to, do not use network activation.
Of course one could say that plugin structure and logic is wrong and
approaching from different angle could avoid this network activation
issue, but I am not the first one to work on this plugin, there have been
other developers and I am really don't want to rewrite most of the plugin.
This plugin is not available yet in WP plugins repository.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15372#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list