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

WordPress Trac noreply at wordpress.org
Mon Feb 3 13:05:18 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:  Plugins       |     Version:  2.7
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------
Changes (by spmlucas):

 * keywords:  needs-patch => has-patch


Comment:

 26735.diff simply adds the if statement to prevent the error. I've left
 the declaration of `WP_UNINSTALL_PLUGIN` alone, but I don't think changing
 it to `true` is a big deal. The codex prescribes simply checking for the
 existence of the constant, not the value - checking the value during a
 bulk uninstall is going to fail unless the plugin happens to be the first
 in the batch.

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


More information about the wp-trac mailing list