WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#41838 closed defect (bug) (duplicate)

PHP notice for WP_UNINSTALL_PLUGIN already defined

Reported by: jsmoriss Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8.1
Component: Plugins Keywords:
Focuses: administration Cc:
PR Number:

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)

#1 @jdgrimes
2 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

Thanks for the report! We're already tracking this issue in #26735.

#2 @SergeyBiryukov
2 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.