[wp-trac] [WordPress Trac] #49265: switch_to_blog() and restore_current_blog() reuse switch_blog action
WordPress Trac
noreply at wordpress.org
Wed Jan 22 02:31:53 UTC 2020
#49265: switch_to_blog() and restore_current_blog() reuse switch_blog action
--------------------------------+------------------------------
Reporter: iandunn | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------------+------------------------------
Comment (by SergeyBiryukov):
Replying to [ticket:49265 iandunn]:
> That still leaves a problem where it may not be obvious to people that
`switch_blog` will still ''also'' run when ''restoring'' a blog, but I'm
not sure there's a back-compat way to solve that.
We could add a context as the third parameter, see [attachment:49265.diff]
for example.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49265#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list