WordPress.org

Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#7878 closed defect (bug) (fixed)

Allow __FILE__ to be passed to activate_plugin()/deactivate_plugin()

Reported by: DD32 Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.7
Component: Administration Keywords: has-patch commit
Focuses: Cc:

Description

Allow FILE to be passed to activate_plugin()/deactivate_plugin()

Its mainly for deactivate_plugin(FILE) for self-deactivation, However, for consistancy, i've also patched activate_plugin().

Attachments (2)

7878.diff (1.5 KB) - added by DD32 13 years ago.
7878.2.diff (743 bytes) - added by DD32 13 years ago.
patch refresh without extra changes

Download all attachments as: .zip

Change History (4)

@DD32
13 years ago

#1 @DD32
13 years ago

  • Keywords has-patch commit added

@DD32
13 years ago

patch refresh without extra changes

#2 @ryan
13 years ago

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

(In [9271]) Allow FILE to be passed to activate_plugin()/deactivate_plugin(). Props DD32. fixes #7878

Note: See TracTickets for help on using tickets.