Make WordPress Core


Ignore:
Timestamp:
09/24/2013 11:40:41 PM (11 years ago)
Author:
nacin
Message:

Use the wpdb method instead of $wpdb->prefix.

props hakre.
fixes #16756.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-blogs.php

    r25276 r25615  
    499499
    500500    $wpdb->set_blog_id( $new_blog );
    501     $GLOBALS['table_prefix'] = $wpdb->prefix;
     501    $GLOBALS['table_prefix'] = $wpdb->get_blog_prefix();
    502502    $prev_blog_id = $GLOBALS['blog_id'];
    503503    $GLOBALS['blog_id'] = $new_blog;
     
    562562    $prev_blog_id = $GLOBALS['blog_id'];
    563563    $GLOBALS['blog_id'] = $blog;
    564     $GLOBALS['table_prefix'] = $wpdb->prefix;
     564    $GLOBALS['table_prefix'] = $wpdb->get_blog_prefix();
    565565
    566566    if ( function_exists( 'wp_cache_switch_to_blog' ) ) {
Note: See TracChangeset for help on using the changeset viewer.