Opened 16 years ago
Closed 16 years ago
#6309 closed defect (bug) (fixed)
deactivate_plugins() deactivates first plugin if specified plugin is not active.
Reported by: | DD32 | Owned by: | |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | 2.5 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
array_search() may return boolean false if the plugin is not in the current array, This causes PHP to interprate it as a 0.
The result is that WordPress deactivates the first plugin in the list if a non-active plugin is passed to deactivate_plugins().
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [7416]) deactivate_plugins() fix from DD32. fixes #6309