[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
Tue Mar 28 05:15:41 UTC 2017


#40279: switch_to_blog() and restore_current_blog() gives a fatal error in a
multisite
--------------------------------+------------------------
 Reporter:  KestutisIT          |       Owner:
     Type:  defect (bug)        |      Status:  reopened
 Priority:  normal              |   Milestone:
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  close               |     Focuses:  multisite
--------------------------------+------------------------
Changes (by flixos90):

 * keywords:   => close


Comment:

 WordPress is obviously not following PSR or anything related. It might be
 arguable whether this is good or not, but the fact is that WordPress also
 has its patterns, one of which is that one has to enable multisite to get
 access to multisite functionality. This has been established over years as
 the way WordPress works. Single site is different from multisite, and
 related pieces of code should account for that.

 I'm not closing this since you asked for a lead developer review, but I
 suggest closing as well.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40279#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list