get_blog_prefix() does not return prefix for current blog when no blog ID is passed
|Reported by:||ryan||Owned by:|
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.