[wp-trac] [WordPress Trac] #57220: New plugin header for requiring network installation (was: New plugin header for requirering network installation)

WordPress Trac noreply at wordpress.org
Tue Dec 6 21:54:10 UTC 2022


#57220: New plugin header for requiring network installation
--------------------------------------+------------------------------
 Reporter:  petitphp                  |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Plugins                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  multisite
--------------------------------------+------------------------------

Comment (by petitphp):

 The goal of this ticket is to give developers a way to flag a plugin as
 "multisite only" and to have the WordPress admin react accordingly.

 Currently, for a plugin built around multisite features, it's not possible
 to prevent users to activate it on a "single site" installation. The
 developer has to add safeguards to stop the plugin initialization, maybe
 warn the user with a notice and/or deactivate it.

 The `Network` header is a first step to force users to activate a plugin
 at the network level in a multisite installation, but it'll not stop users
 from activating it on a single site instance, hence this proposal.

 I agree that this proposal is very niche and only apply to a limited set
 of plugins.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57220#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list