[wp-trac] [WordPress Trac] #37958: Improve looping through sites and restoring

WordPress Trac noreply at wordpress.org
Sat Nov 19 14:59:53 UTC 2016


#37958: Improve looping through sites and restoring
--------------------------------+-------------------------------------
 Reporter:  tfrommen            |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  multisite, performance
--------------------------------+-------------------------------------

Comment (by tfrommen):

 @swissspidy and I just had a longer discussion at WordCamp Geneva, and we
 agreed on removing the static factory method from the suggested class, but
 instead provide two functions to store the current site state as well as
 restore a specific site state.

 [https://core.trac.wordpress.org/attachment/ticket/37958/37958.patch
 37958.patch] includes the new `WP_Site_State` class and the mentioned
 functions, and also makes use of the new functions in three core files.

 In a further step one could also introduce a set of functions in order to
 switch to a specific site and a specific locale in one go.

 Feedback welcome!

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


More information about the wp-trac mailing list