WordPress.org

Make WordPress Core

Changeset 13245


Ignore:
Timestamp:
02/20/10 10:50:57 (6 years ago)
Author:
nacin
Message:

Fix wpdb::tables() prefix handling. Ensures PHP4 compat. See #12083

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r13242 r13245  
    602602        if ( $prefix ) { 
    603603            $prefix = $this->get_blog_prefix( $blog_id ); 
    604             foreach ( $tables as &$table ) { 
    605                 $table = $prefix . $table; 
     604            foreach ( $tables as $k => $table ) { 
     605                $tables[$k] = $prefix . $table; 
    606606            } 
    607607        } 
Note: See TracChangeset for help on using the changeset viewer.