[wp-trac] [WordPress Trac] #36406: $network_wide is unreliable

WordPress Trac noreply at wordpress.org
Thu Apr 6 04:50:20 UTC 2017


#36406: $network_wide is unreliable
-------------------------------------------------+-------------------------
 Reporter:  mensmaximus                          |       Owner:
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  Future
Component:  Plugins                              |  Release
 Severity:  critical                             |     Version:  3.0
 Keywords:  has-patch needs-refresh needs-unit-  |  Resolution:
  tests                                          |     Focuses:  multisite
-------------------------------------------------+-------------------------

Comment (by jeremyfelt):

 Replying to [comment:29 KestutisIT]:
 > > and in the:
 > >
 > > {{{
 > > public function activate()
 > > {
 > > // there is NO way to check is that is single site, or network
 activation
 > > }
 > > }}}

 `$network_wide` is available in `activate()` here and can be used to
 detect if this is a network activation.

 The issue described by this ticket is that there's no clean way to avoid
 network activation when `$network_wide` is seen as `true`.

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


More information about the wp-trac mailing list