[wp-trac] [WordPress Trac] #27884: Unit testing Multisite's bootstrap
WordPress Trac
noreply at wordpress.org
Mon Aug 18 07:17:07 UTC 2014
#27884: Unit testing Multisite's bootstrap
----------------------------+------------------------
Reporter: jeremyfelt | Owner: nacin
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.0
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: multisite
----------------------------+------------------------
Changes (by tellyworth):
* status: closed => reopened
* resolution: fixed =>
Comment:
I'm getting a PHP warning that I think was created here:
{{{
PHP Warning: Uncaught exception 'PHPUnit_Framework_Error_Notice' with
message 'Undefined variable: wpdb' in wordpress-develop/src/wp-includes
/ms-settings.php:76
}}}
The {{{! is_subdomain_install()}}} block in ms-settings.php refers to
{{{$wpdb}}} which is not in scope when called from
{{{_setup_host_request()}}}.
Adding {{{$wpdb}}} to the globals in {{{_setup_host_request()}}} fixes it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27884#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list