[wp-trac] [WordPress Trac] #62984: Find some "global variables" are missing to define into the WordPress core files.

WordPress Trac noreply at wordpress.org
Wed Feb 19 17:09:51 UTC 2025


#62984: Find some "global variables" are missing to define into the WordPress core
files.
---------------------------+-------------------------------
 Reporter:  viralsampat    |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-refresh  |     Focuses:  coding-standards
---------------------------+-------------------------------

Comment (by johnbillion):

 The variables in version.php are not always globals, the documentation is
 somewhat misleading. They're global when version.php is included in the
 global scope, but it also gets included in local scope during the upgrade
 process.

 Explicitly declaring version.php variables as global will break updates.
 If someone wants to open a PR with this change, fingers crossed it gets
 picked up by tests. If not, the tests need improving.

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


More information about the wp-trac mailing list