wpdb::$base_prefix is not documented
|Reported by:||hakre||Owned by:||nacin|
Probably wpdb::$base_prefix has been merged into from MU and not further specified then.
It genereally can be replaced with wpdb::get_blog_prefix(0) when the MULTISITE constant is defined. That is are after wp-settings.php has been included (wp-config.php, wp-load.php), even on SHORTINIT.
It might be that this function call does not cover all cases needed because if MULTISITE is not defined when called, it will not return the wpdb::$base_prefix.
More insight into MU is needed, feedback appreceated. Some places look like that they are not aware of the wpdb::get_blog_prefix() function. Probably legacy MU code.
Change History (11)
comment:2 SergeyBiryukov — 19 months ago
- Component changed from General to Database
- Milestone changed from Unassigned to Awaiting Review
comment:6 SergeyBiryukov — 11 days ago
- Milestone changed from Awaiting Review to 3.9
- Version set to 3.0