[wp-trac] [WordPress Trac] #38305: wrong permalink structure return by get_permalink() when switching blog in WPMU
WordPress Trac
noreply at wordpress.org
Thu Oct 13 16:07:01 UTC 2016
#38305: wrong permalink structure return by get_permalink() when switching blog in
WPMU
--------------------------------+------------------------------
Reporter: 5um17 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: close 2nd-opinion | Focuses: multisite
--------------------------------+------------------------------
Changes (by flixos90):
* keywords: => close 2nd-opinion
Comment:
I don't think this is something we should take care of at this point.
Using `switch_to_blog()` switches the currently active site state/scope,
that includes the permalink structure. In my opinion, what you're
describing is expected. I'm curious what's the use-case for switching to
another site for receiving the permalink of the current post.
I don't think we can reliably switch the current post when a site is
switched, also it would add (for most cases) unnecessary overhead to the
switching site process. Therefore I tend `wontfix` for this one.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38305#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list