[wp-trac] [WordPress Trac] #26735: Plugin bulk deletion attempts to define WP_UNINSTALL_PLUGIN constant multiple times

WordPress Trac noreply at wordpress.org
Sun Feb 2 06:51:46 UTC 2014


#26735: Plugin bulk deletion attempts to define WP_UNINSTALL_PLUGIN constant
multiple times
--------------------------+-----------------------------
 Reporter:  jdgrimes      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.9
Component:  Admin APIs    |     Version:  2.7
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  administration
--------------------------+-----------------------------
Changes (by nacin):

 * keywords:   => needs-patch
 * focuses:   => administration
 * component:  Plugins => Admin APIs
 * milestone:  Awaiting Review => 3.9


Comment:

 WP_UNINSTALL_PLUGIN is simply there so a plugin's uninstall.php file can
 confirm it was indeed invoked from the uninstall routine. We simply need
 to do `if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) defined(
 'WP_UNINSTALL_PLUGIN', true );` It'd only avoid the notice, not actually
 change what's happening.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26735#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list