[wp-trac] [WordPress Trac] #51556: Cannot activate a plugin which overrides pluggable function

WordPress Trac noreply at wordpress.org
Sat Oct 17 08:30:46 UTC 2020


#51556: Cannot activate a plugin which overrides pluggable function
----------------------------+-----------------------------
 Reporter:  superpoincare   |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Plugins         |    Version:  5.5.1
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Trying to activate a plugin with a function with the same name as in wp-
 includes/pluggable.php gives a fatal error and doesn't activate it.

 This probably happens because during the activation process, the
 pluggable.php file loads earlier. In a normal loading process, the plugin
 would load earlier and not give this error.

 The same plugin would however activate without any errors if I remove the
 lines and activate the plugin. The plugin would also run if the lines are
 added after the activation, either by FTP or using the code editor.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51556>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list