[wp-trac] [WordPress Trac] #33928: Multisite: in sunrise.php $wpdb->prefix is empty
WordPress Trac
noreply at wordpress.org
Thu Sep 24 12:23:58 UTC 2015
#33928: Multisite: in sunrise.php $wpdb->prefix is empty
--------------------------+------------------------
Reporter: lordspace | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Database | Version: 4.3
Severity: normal | Resolution: invalid
Keywords: | Focuses: multisite
--------------------------+------------------------
Changes (by johnbillion):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
This is intended behaviour.
`sunrise.php` can be used to override the site determination in multisite
with your own logic (the most common use of this is domain mapping). The
current site hasn't been determined at this point, and therefore the site-
specific properties of `$wpdb` haven't yet been populated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33928#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list