[wp-trac] [WordPress Trac] #24178: An active plugin which switches to network-only is impossible to deactivate
WordPress Trac
noreply at wordpress.org
Wed Feb 5 14:57:40 UTC 2014
#24178: An active plugin which switches to network-only is impossible to deactivate
----------------------------------+----------------------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: Plugins | Version:
Severity: major | Resolution:
Keywords: has-patch needs- | Focuses: administration, multisite
testing |
----------------------------------+----------------------------------------
Comment (by mordauk):
I've just tested and confirmed the patch to work. Steps I took:
1. Created test plugin:
{{{
<?php
/*
* Plugin Name: Network Only Test Plugin
*/
// Just a test plugin for network activation only
}}}
2. Activated the plugin on a site in the network
3. Added the `Network: true` header:
{{{
<?php
/*
* Plugin Name: Network Only Test Plugin
* Network: true
*/
// Just a test plugin for network activation only
}}}
4. Uploaded the modified version (imitating a plugin update)
5. The plugin remained visible and active on the site it was activated on
in 1.
6. Deactivated the plugin and it immediately disappeared, as expected for
a Network only plugin.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24178#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list