[wp-trac] [WordPress Trac] #33928: Multisite: in sunrise.php $wpdb->prefix is empty
WordPress Trac
noreply at wordpress.org
Fri Sep 18 21:52:47 UTC 2015
#33928: Multisite: in sunrise.php $wpdb->prefix is empty
--------------------------+-----------------------------
Reporter: lordspace | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 4.3
Severity: normal | Keywords:
Focuses: multisite |
--------------------------+-----------------------------
I was working on a multisite WP install and noticed that within
sunrise.php
$wpdb->prefix is empty. I had to do this kind of workaround.
{{{
$db_prefix = preg_replace( '#_blogs$#', '_', $wpdb->blogs );
}}}
I also noticed that $wpdb->posts is empty too. Strange.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33928>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list