[wp-trac] [WordPress Trac] #24744: Prevent user to activate a plugin network wide

WordPress Trac noreply at wordpress.org
Sat Jul 13 13:30:10 UTC 2013


#24744: Prevent user to activate a plugin network wide
---------------------------+-----------------------------
 Reporter:  wpfo           |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Network Admin  |    Version:  trunk
 Severity:  normal         |   Keywords:  needs-patch
---------------------------+-----------------------------
 So long we have not Settings API for network_wide activated plugins we
 need a way to prevent user to activate a plugin network wide.

 Possible Solution:
 New '''header''' in Plugin File Header: '''Blog'''
 Blog - Boolean. Whether the plugin can only be activated per-site.
 If true - Action link 'Network Activate' will be hiden in Network Admin
 Plugins Table
 (problems are the bulk_actions in this approach).

 We have now no way to prevent user to activate a plugin network wide.
 All 'plugin_action_links' Filters work only if a plugin is already
 activated.
 Or am I missing something?

 Alternatively:
 we could have only one header for all activation modes e.g.
 Activation (or '''ActivationMode''') - String
         '''Network''' - plugin can only be activated network wide.
         '''Blog''' - plugin can only be activated per-site.
         '''Both''' - plugin can be activated network wide or per-site.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24744>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list