Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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)

#1 @jdgrimes
9 years ago

  • Resolution → duplicate
  • Status new → closed

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

#2 @SergeyBiryukov
9 years ago

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