Ticket #6309 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

deactivate_plugins() deactivates first plugin if specified plugin is not active.

Reported by: DD32 Assigned to: anonymous
Priority: normal Milestone: 2.5
Component: Administration Version: 2.5
Severity: normal Keywords: has-patch
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

6309.diff (0.5 kB) - added by DD32 on 03/20/08 12:01:34.

Change History

03/20/08 12:01:34 changed by DD32

  • attachment 6309.diff added.

03/20/08 17:24:45 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [7416]) deactivate_plugins() fix from DD32. fixes #6309