Fix wpdb::tables() prefix handling. Ensures PHP4 compat. See #12083
git-svn-id: https://develop.svn.wordpress.org/trunk@13245 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d824d6bbd4
commit
ea9e869ea8
@ -601,8 +601,8 @@ class wpdb {
|
|||||||
|
|
||||||
if ( $prefix ) {
|
if ( $prefix ) {
|
||||||
$prefix = $this->get_blog_prefix( $blog_id );
|
$prefix = $this->get_blog_prefix( $blog_id );
|
||||||
foreach ( $tables as &$table ) {
|
foreach ( $tables as $k => $table ) {
|
||||||
$table = $prefix . $table;
|
$tables[$k] = $prefix . $table;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user