Make WordPress Core

Opened 22 years ago

Closed 22 years ago

Last modified 9 years ago

#317 closed defect (bug) (fixed)

Multiple copies of a plugin can be adding, leading to fatal errors

Reported by: MC_incubus Owned by: michel v
Priority: normal Milestone:
Component: Administration Version:
Severity: critical Keywords:
Cc: Focuses:

Description

If you activate a plugin and doubleclick the "activate" link, it will activate two copies of the plugin, which leads to Fatal error: Cannot redeclare function_name()

plugins.php should make sure the plugin it is activating is not already activated!

Change History (4)

#2 @michel v
22 years ago

  • Owner changed from anonymous to michel v
  • Resolution 1020
  • Status newclosed

Added a check to avoid activating the same plugin twice, and changed include() into include_once() to avoid including the same plugin file twice.

This ticket was mentioned in Slack in #core-editor by kopepasah. View the logs.


9 years ago

Note: See TracTickets for help on using tickets.