Opened 19 years ago
Closed 19 years ago
#6309 closed defect (bug) (fixed)
deactivate_plugins() deactivates first plugin if specified plugin is not active.
| Reported by: | DD32 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | Administration | Version: | 2.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [7416]) deactivate_plugins() fix from DD32. fixes #6309