[wp-trac] [WordPress Trac] #12820: get_blog_prefix() does not return prefix for current blog when no blog ID is passed

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 2 20:11:56 UTC 2010


#12820: get_blog_prefix() does not return prefix for current blog when no blog ID
is passed
--------------------------+-------------------------------------------------
 Reporter:  ryan          |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.0
Component:  Multisite     |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
 get_blog_prefix() is called without a blog_id arg in several places,
 notably in wp-admin/includes/user.php when creating level_keys. Since
 get_blog_prefix() does not return the current prefix when blog ID is not
 passed and is_multisite(), the keys are wrong.  I suspect these places
 should use $wpdb->prefix.

 There's also a call to get_blog_prefix() with no args in ms-settings.php.
 This results in $table_prefix being assigned base_prefix. I think is
 expected but should be verified.

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


More information about the wp-trac mailing list