#15166 closed defect (bug) (fixed)
is_plugin_active() returns based on current site in Network Admin
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Administration | Version: | |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Kawauso |
Description
is_plugin_active() uses the 'active_plugins' option, which is site-specific, as well as is_plugin_active_for_network().
Most obviously affects the Plugins section in Network Admin, which displays both the current site's plugins as well as those network activated as being active.
Attachments (3)
Change History (7)
We wouldn't put this logic into is_plugin_active. Where I would put the logic, already has the logic -- It looks like we've properly accounted for is_network_admin() in WP_Plugins_Table::display_rows(). I also can't reproduce this.
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

Use is_network_admin() check before using 'active_plugins' option