[wp-trac] [WordPress Trac] #40279: switch_to_blog() and restore_current_blog() gives a fatal error in a multisite
WordPress Trac
noreply at wordpress.org
Mon Mar 27 20:23:58 UTC 2017
#40279: switch_to_blog() and restore_current_blog() gives a fatal error in a
multisite
--------------------------------+------------------------
Reporter: KestutisIT | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Networks and Sites | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses: multisite
--------------------------------+------------------------
Changes (by jeremyfelt):
* status: reopened => closed
* resolution: => invalid
Comment:
Replying to [comment:2 KestutisIT]:
> you SHOULD NOT have to write different code if multisite is enabled
For better or worse, this is the required pattern when developing
something that works in single and multisite configurations. The same
`is_multisite()` check included in the original ticket description is
exactly what WordPress core does throughout its code base.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40279#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list