[wp-trac] [WordPress Trac] #23685: Explicitly globalize version variables
WordPress Trac
noreply at wordpress.org
Fri Aug 30 21:41:57 UTC 2013
#23685: Explicitly globalize version variables
---------------------------------+------------------
Reporter: nbachiyski | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.7
Component: Unit Tests | Version: 3.6
Severity: normal | Resolution:
Keywords: has-patch 3.7-early |
---------------------------------+------------------
Comment (by SergeyBiryukov):
If load a Multisite install in a function (by including `wp-load.php`),
you'll get en error:
{{{
Fatal error: Call to a member function set_prefix() on a non-object in wp-
includes/ms-settings.php on line 126
}}}
Tested in 3.3, 3.5.1, and trunk. See the
[https://irclogs.wordpress.org/chanlog.php?channel=wordpress-
dev&day=2013-08-30&sort=asc#m678960 IRC discussion].
Perhaps we should explicitly globalize `$wpdb` as well.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23685#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list