[wp-trac] [WordPress Trac] #55432: The $plugin parameter of the "plugin_loaded" action can be polluted by individual plugins

WordPress Trac noreply at wordpress.org
Tue Mar 22 14:35:37 UTC 2022


#55432: The $plugin parameter of the "plugin_loaded" action can be polluted by
individual plugins
---------------------------+---------------------
 Reporter:  stevegrunwell  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  6.0
Component:  Plugins        |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+---------------------

Comment (by joyously):

 Making a function to load a plugin would have drastic effects, because all
 the global variables would not be available. This is the same as themes,
 where certain global variables are imported to the function that loads
 templates.

 If you have to make a change here, I vote for renaming the variable.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55432#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list