Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#8123 closed defect (bug) (fixed)

Uninstall constant is named WP_UNINSTALL_PLUGIN

Reported by: alexrabe Owned by:
Milestone: 2.7 Priority: low
Severity: normal Version:
Component: Plugins Keywords:
Focuses: Cc:


The inline doc for register_uninstall_hook() says

The plugin, when using the 'uninstall.php' should always check for the WP_UNINSTALLING_PLUGINconstant, before executing.


Attachments (1)

plugin.patch (586 bytes) - added by alexrabe 10 years ago.
This stole me one hours :-)

Download all attachments as: .zip

Change History (4)

10 years ago

This stole me one hours :-)

#1 @jacobsantos
10 years ago

Sorry about that, I think it should be WP_UNINSTALLING_PLUGIN in the code.

#2 @alexrabe
10 years ago

For me no problem, then please change the constant name.

#3 @azaozz
10 years ago

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

(In [9611]) Fix constant name in phpDoc, props alexrabe, fixes #8123

Note: See TracTickets for help on using tickets.