[wp-trac] [WordPress Trac] #45861: Global variable in plugin main file

WordPress Trac noreply at wordpress.org
Tue Jul 15 13:23:12 UTC 2025


#45861: Global variable in plugin main file
------------------------------------------------+--------------------------
 Reporter:  rilwis                              |       Owner:  (none)
     Type:  defect (bug)                        |      Status:  new
 Priority:  normal                              |   Milestone:  Awaiting
                                                |  Review
Component:  Plugins                             |     Version:
 Severity:  normal                              |  Resolution:
 Keywords:  dev-feedback has-patch 2nd-opinion  |     Focuses:
------------------------------------------------+--------------------------
Changes (by callumbw95):

 * keywords:  dev-feedback has-patch => dev-feedback has-patch 2nd-opinion


Comment:

 HI @rilwis,

 I think it would be good to get a `2nd-opinion` here as I am not sure the
 best way forward with this. I think potentially educating plugin
 developers within the docs to make sure they don't do this makes a lot of
 sense. I would also like to put in the patch mentioned, but feel this
 could end up breaking a lot of plugins without warning, and without
 properly informing the community that plugins will need to be updated to
 work with this new code could have major repercussions.

 However I have marked this ticket with the `2nd-opinion` tag to see if we
 can get any more feedback on this. 😃

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


More information about the wp-trac mailing list