Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#41838 closed defect (bug) (duplicate)

PHP notice for WP_UNINSTALL_PLUGIN already defined

Reported by: jsmoriss's profile jsmoriss Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8.1
Component: Plugins Keywords:
Focuses: administration Cc:

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
7 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
7 years ago

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