[wp-trac] [WordPress Trac] #23685: Explicitly globalize version variables
WordPress Trac
noreply at wordpress.org
Mon Mar 4 11:00:10 UTC 2013
#23685: Explicitly globalize version variables
-----------------------------+--------------------------
Reporter: nbachiyski | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Unit Tests
Version: trunk | Severity: normal
Keywords: has-patch |
-----------------------------+--------------------------
When WordPress is loaded in a function (e.g. unit tests) the variables
initialized at the top level aren't globals, but we expect them to be.
For example, if in a unit test there is no way to access `$wp_version`.
Neither via `$wp_version` (it's not in the same scope), not via
`$GLOBALS['wp_version']` (it's not a global).
To fix that we need to explicitly make the version variables global.
See #17749.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23685>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list