[wpmu-trac] [WordPress MU Trac] #1168: switch_to_blog() does not handle permalinks

WordPress MU Trac wpmu-trac at lists.automattic.com
Mon Nov 30 16:34:41 UTC 2009


#1168: switch_to_blog() does not handle permalinks
------------------------+---------------------------------------------------
 Reporter:  DeannaS     |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  component1  |     Version:          
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 When you run switch_to_blog() and then output any of the code that
 displays permalinks, the permalink structure remains that of the
 originating blog. If you switch to the main blog on a sub-directory
 install, links to posts/pages break, because the initial '/blog/' is left
 off the permalink. This patch adds permalinks, category base and tag base
 handling to the switch_to_blog and restore_current_blog functions.

 Not tested in a subdomain install. If anyone could help out with testing,
 that'd be great. Thanks!

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1168>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list