Explicitly globalize version variables
|Reported by:||nbachiyski||Owned by:||wonderboymusic|
|Component:||Unit Tests||Keywords:||has-patch 3.7-early commit|
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.
Change History (12)
- Keywords 3.7-early added
- Milestone changed from Awaiting Review to Future Release
comment:5 SergeyBiryukov — 11 months ago
comment:7 wonderboymusic — 8 months ago
- Owner set to wonderboymusic
- Resolution set to fixed
- Status changed from new to closed