Make WordPress Core

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's profile 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)

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

Download all attachments as: .zip

Change History (2)

@DD32
16 years ago

#1 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.