[wp-trac] [WordPress Trac] #12040: switch_to_blog() does not handle permalinks

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 26 17:19:06 UTC 2010


#12040: switch_to_blog() does not handle permalinks
--------------------------+-------------------------------------------------
 Reporter:  wpmuguru      |       Owner:                         
     Type:  defect (bug)  |      Status:  new                    
 Priority:  normal        |   Milestone:  Unassigned             
Component:  Multisite     |     Version:                         
 Severity:  normal        |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------
 MU Trac Ticket: http://trac.mu.wordpress.org/ticket/1168



 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://core.trac.wordpress.org/ticket/12040>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list