[wp-trac] [WordPress Trac] #36406: $network_wide is unreliable
WordPress Trac
noreply at wordpress.org
Sat Jul 6 12:39:48 UTC 2019
#36406: $network_wide is unreliable
-------------------------------------------------+-------------------------
Reporter: mensmaximus | Owner: (none)
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Future
| Release
Component: Plugins | Version: 3.0
Severity: blocker | Resolution:
Keywords: has-patch needs-refresh needs-unit- | Focuses: multisite
tests |
-------------------------------------------------+-------------------------
Comment (by KestutisIT):
Just an additional suggestion to this is that we should have two hooks
instead in the future, instead of playing with IF/ELSE statements,
meaning:
{{{#!php
<?php
register_activation_hook(..);
}}}
which would be called only on local activations, doesn't matter if the
site is based on multisite or not,
and
{{{#!php
<?php
register_network_activation_hook(..);
}}}
which would be called only after call from 'network plugins admin' with
'network activate click'.
That would make WordPress much more user friendly and developers would be
able to write more cleaner and do make less bugs in the code.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36406#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list