#41838 closed defect (bug) (duplicate)
PHP notice for WP_UNINSTALL_PLUGIN already defined
| Reported by: | jsmoriss | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugins | Version: | 4.8.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | administration |
Description
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.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the report! We're already tracking this issue in #26735.