[wpmu-trac] [WordPress MU Trac] #1072: 'restore_current_blog()' not returning to previous blog after multiple 'switch_to_blog()' function calls

WordPress MU Trac wpmu-trac at lists.automattic.com
Thu Jul 23 11:26:34 UTC 2009


#1072: 'restore_current_blog()' not returning to previous blog after multiple
'switch_to_blog()' function calls
---------------------------------------------------+------------------------
 Reporter:  bigdawggi                              |        Owner:  donncha 
     Type:  defect                                 |       Status:  assigned
 Priority:  normal                                 |    Milestone:          
Component:  component1                             |      Version:  2.8.2   
 Severity:  normal                                 |   Resolution:          
 Keywords:  switch to blog, restore current blog,  |  
---------------------------------------------------+------------------------
Changes (by donncha):

  * owner:  somebody => donncha
  * status:  new => assigned

Comment:

 Applied patch in [1907] and fixed some typos in the switch action shortcut
 (the prev_blog_id wasn't defined yet). Also added the shortcut to the
 restore_current_blog() and checked if the switch stack is an array at all
 there.

 Feedback welcome!

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1072#comment:2>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list