[wp-trac] [WordPress Trac] #15372: Add new plugin header parameter BlogOnly

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 10 10:25:01 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:  plugin, disable network activation, blog only
-----------------------------+----------------------------------------------
 Hi,

 I had a need to disable network activation for certain plugin.

 There's "Network" parameter in plugin header but only make plugin network
 only or not. I need just the opposite, so i hacked a bit and come up with
 following.

 I added new parameter "BlogOnly" -- don't know if it's the best word but
 it works.

 If BlogOnly is set to "true" in plugin header, then Network activation
 link is not shown. Idea come from the issue with network activation in WP
 3.0.1 - where activation_hooks don't fire on every blog. Yes, I am aware
 that there's trac ticket for this and in 3.1 probably will be fixed, but
 still there should be this BlogOnly option in my opinion.

 I've included patches.

 Maybe this could be included in WP 3.1 release ?

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


More information about the wp-trac mailing list