[wp-trac] [WordPress Trac] #41838: PHP notice for WP_UNINSTALL_PLUGIN already defined

WordPress Trac noreply at wordpress.org
Fri Sep 8 22:25:43 UTC 2017


#41838: PHP notice for WP_UNINSTALL_PLUGIN already defined
----------------------------+-----------------------------
 Reporter:  jsmoriss        |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Plugins         |    Version:  4.8.1
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 When running delete_plugins() two or more times, a PHP notice is reported
 that "Constant WP_UNINSTALL_PLUGIN already defined in /.../wordpress/wp-
 admin/includes/plugin.php on line 1012".

 Running delete_plugins() for a single plugin, and then another, allows for
 better error control / reporting / management than submitting all plugins
 at once in a single array.

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


More information about the wp-trac mailing list