[wp-trac] [WordPress Trac] #47796: uninstall_plugin should do an include_one not include

WordPress Trac noreply at wordpress.org
Mon Jul 29 18:10:57 UTC 2019


#47796: uninstall_plugin should do an include_one not include
--------------------------+-----------------------------
 Reporter:  pcfreak30     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Plugins       |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47796>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list