Opened 5 years ago
Closed 4 years ago
#47796 closed defect (bug) (fixed)
uninstall_plugin should do an include_once not include
Reported by: | pcfreak30 | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Plugins | Keywords: | has-patch |
Focuses: | Cc: |
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.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Hey!
Updated both
include
calls toinclude_once
instead in theuninstall_plugin
function