Make WordPress Core

Opened 7 years ago

Closed 7 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 7 years ago.
This stole me one hours :-)

Download all attachments as: .zip

Change History (4)

@alexrabe7 years ago

This stole me one hours :-)

comment:1 @jacobsantos7 years ago

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

comment:2 @alexrabe7 years ago

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

comment:3 @azaozz7 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.