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

WordPress MU Trac wpmu-trac at lists.automattic.com
Thu Dec 17 15:28:07 UTC 2009


#1168: switch_to_blog() does not handle permalinks
------------------------+---------------------------------------------------
 Reporter:  DeannaS     |       Owner:  somebody 
     Type:  defect      |      Status:  new      
 Priority:  normal      |   Milestone:  2.9      
Component:  component1  |     Version:           
 Severity:  normal      |    Keywords:  has-patch
------------------------+---------------------------------------------------

Comment(by DeannaS):

 Okay, I'd appreciate it if someone else could take a look at this. I have
 a new version of the patch, that sort of kind of works. But, it still
 fails on the tag prefix. Maybe I'm going about fixing that in the wrong
 way. Basically what happens is that if you do a switch_to_blog() and run
 the wp_tag_cloud() function, it incorrectly generates the links.

 It's working in the case of post links, though. An example:
 On main blog: Set permalinks like so:
 Permalinks: /%year%/%monthnum%/%day%/%postname%/
 Cat base:
 Tag base: foo

 On a subblog, set permalinks like so:
 /archives/%post_id%
 Cat base:
 Tag base: bar

 Use some plugins on the main page that do a switch to blog.
 Here's one where the tag cloud links fail:
 http://wordpress.org/extend/plugins/wpmu-featured-blog-tag-cloud/

 Here's one where the post links work:
 http://wordpress.org/extend/plugins/wpmu-featured-blog-widget/

 I have a feeling the same issue that the tag links have would also be the
 case for category links but I haven't tested that yet.

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


More information about the wpmu-trac mailing list