Make WordPress Core

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)

6309.diff​ (561 bytes ) - added by DD32 19 years ago.

Download all attachments as: .zip

Change History (2)

@DD32
19 years ago

#1 @ryan
19 years ago

  • Resolution → fixed
  • Status new → closed

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

Note: See TracTickets for help on using tickets.