[wpmu-trac] [WordPress MU Trac] #1132: add get_blog_prefix to wpdb class
WordPress MU Trac
wpmu-trac at lists.automattic.com
Mon Oct 19 00:35:13 UTC 2009
#1132: add get_blog_prefix to wpdb class
-------------------------+--------------------------------------------------
Reporter: wpmuguru | Owner: somebody
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
This function will allow plugins to access tables in other blogs without
executing switch_to_blog/restore_current_blog.
After the merge, the main blog's tables may be tableprefix_blogtable
without the blog id.
If this is rolled into 2.9 then plugin authors will have an opportunity to
update plugins that currently use $wpdb->base_prefix . $blog_id . '_' to
$wpdb->get_blog_prefix().
This function can also be implemented in the MU specific code to replace
the concatenation above.
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/1132>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list