WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#47796 new defect (bug)

uninstall_plugin should do an include_once not include

Reported by: pcfreak30 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Plugins Keywords: needs-patch
Focuses: Cc:
PR Number:

Description

This seems to be an edge case, but it is possible for a plugin file to already be loaded when uninstall_plugin is run (like if done programmatically).

This can cause a fatal, and the simple solution is to use include_once.

Change History (1)

#1 @ianbelanger
3 months ago

  • Summary changed from uninstall_plugin should do an include_one not include to uninstall_plugin should do an include_once not include
  • Version trunk deleted
Note: See TracTickets for help on using tickets.