[wp-trac] [WordPress Trac] #16558: switch_to_blog does not properly update global $wpdb

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 15 09:19:11 UTC 2011


#16558: switch_to_blog does not properly update global $wpdb
------------------------------------------+------------------------------
 Reporter:  divinegod                     |       Owner:
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  General                       |     Version:  3.0.4
 Severity:  normal                        |  Resolution:  invalid
 Keywords:  worksforme reporter-feedback  |
------------------------------------------+------------------------------
Changes (by divinegod):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 I've found the error in the code. switch_to_blog() was called with correct
 argument.

 The code I had used $wpdb->get_results instead of $wpdb->get_col

 Closing this as invalid.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16558#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list