[wp-trac] [WordPress Trac] #26867: Explicitly globalize some missing query globals in wp-settings.php
WordPress Trac
noreply at wordpress.org
Wed Jan 22 11:43:54 UTC 2014
#26867: Explicitly globalize some missing query globals in wp-settings.php
--------------------------+-------------------------
Reporter: nbachiyski | Owner: nbachiyski
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.9
Component: Unit Tests | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-------------------------
Changes (by xknown):
* status: closed => reopened
* resolution: fixed =>
Comment:
The {{{$wp->init()}}} call in line 334 (wp-settings.php) should be
transformed to {{{$GLOBALS['wp']->init()}}}. Otherwise unit tests that
don't call {{{global $wp;}}} on their config file fail with a PHP fatal
error due to the fact that {{{$wp}}} isn't defined.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26867#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list