[wp-trac] [WordPress Trac] #25293: Switch_to_blog not switching the siteid

WordPress Trac noreply at wordpress.org
Thu Sep 8 20:47:06 UTC 2016


#25293: Switch_to_blog not switching the siteid
------------------------------------------------+--------------------------
 Reporter:  Rahe                                |       Owner:
     Type:  defect (bug)                        |      Status:  new
 Priority:  normal                              |   Milestone:  Future
Component:  Networks and Sites                  |  Release
 Severity:  minor                               |     Version:  3.0
 Keywords:  has-patch dev-feedback 2nd-opinion  |  Resolution:
                                                |     Focuses:  multisite
------------------------------------------------+--------------------------

Comment (by jeremyfelt):

 Replying to [comment:18 flixos90]:
 > Replying to [comment:17 swissspidy]:
 > > Looking at this ticket, #37958 and #26511, `WP_State` is not a good
 name for this site-related class.
 >
 > +1, the name should be more specific. Anyone has an idea better than
 `WP_Site_State`?

 Agreed. We should try to name this in a way that supports some of the
 things we may be able to do in the future. It's maintaining the context of
 a site / network in a (global) WordPress instance. The old meaning of the
 "site" term (MU style) would kind of work here as it's a site containing
 one or more networks with one or more blogs. We need to find the right
 terms to describe how the context of that is switched.

 > Regarding an interface, I'm not sure how this class would have anything
 in common with `WP_Locale_State` other than it switches something - might
 be sufficient for an interface later, or can you come up with something in
 particular?

 It would be nice to identify these common areas. That each could (1)
 maintain a stack of contexts, (2) move to a new context, (3) restore to a
 previous context, and (4) restore to a specific context should mean that
 there are areas that overlap pretty well.

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


More information about the wp-trac mailing list