[wp-trac] [WordPress Trac] #16762: wpdb::$base_prefix is not documented

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 5 16:17:01 UTC 2011


#16762: wpdb::$base_prefix is not documented
-----------------------+-------------------------
 Reporter:  hakre      |       Owner:
     Type:  defect     |      Status:  new
 Priority:  normal     |   Milestone:  Unassigned
Component:  General    |     Version:
 Severity:  normal     |  Resolution:
 Keywords:  has-patch  |
-----------------------+-------------------------
 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.

 Related: #16756

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16762>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list