[wpmu-trac] [WordPress MU Trac] #1164: Retrieve cross-blog post returns 404 since 2.8.5

WordPress MU Trac wpmu-trac at lists.automattic.com
Tue Nov 24 13:41:17 UTC 2009


#1164: Retrieve cross-blog post returns 404 since 2.8.5
-----------------------+----------------------------------------------------
 Reporter:  litemotiv  |       Owner:  somebody      
     Type:  defect     |      Status:  new           
 Priority:  normal     |   Milestone:                
Component:  General    |     Version:                
 Severity:  normal     |    Keywords:  switch_to_blog
-----------------------+----------------------------------------------------
 We have a multi-site setup where all posts are managed in blog 1, and then
 retrieved in other blogs by using switch_to_blog(), for instance:

 mysite.com/category/title/

 is retrieved as:

 mysite.com/sub_blog/category/title/

 This worked fine up til 2.8.4a, by simply placing switch_to_blog(1) in
 single.php, the blog-1 post was then shown natively in blog-x.

 Since 2.8.5 though this produces a 404, $wp_query shows that before the
 template engine is called is_404 is set to true, thus calling the 404
 template. For our site, the original behaviour is crucial since posts are
 retrieved on multiple combinations of blogs.

 In case there is a new/different/better way to retrieve remote posts
 natively throughout blogs, please let me know. If not, hopefully this bug
 will be validated.

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


More information about the wpmu-trac mailing list