[wp-trac] [WordPress Trac] #20861: switch_to_blog() breaks custom post type permalinks

WordPress Trac noreply at wordpress.org
Sun Aug 25 16:13:26 UTC 2013


#20861: switch_to_blog() breaks custom post type permalinks
--------------------------+------------------------------
 Reporter:  sickhippie    |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Multisite     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  close         |
--------------------------+------------------------------
Changes (by jeremyfelt):

 * keywords:   => close


Comment:

 I can reproduce on current trunk.

 Also of note: If the post type is only registered on blog ID 2, and you
 ask for the permalink from blog ID 1, the default `post` structure is
 returned because blog ID 1 is not aware that `clippings` exists.

 I can't imagine a fix for this being possible without every site in a
 network installation being able to generate the rewrite rules of every
 other site on demand. With all of the methods available around creating
 and modifying rewrite rules, this does not seem plausible.

 I can start to imagine some creative ways of solving this on individual
 setups. I think that's more appropriate here.

 Suggesting wontfix.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/20861#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list