[wp-trac] [WordPress Trac] #37958: Improve looping through sites and restoring
WordPress Trac
noreply at wordpress.org
Thu Jan 26 21:05:43 UTC 2017
#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 swissspidy):
I agree with both of you :-)
Right now, [attachment:37958.patch] is great when you want to switch to
multiple blogs in a loop and want to easily go back to the pre-loop state
in one step (`restore_site_state()` in the patch).
Making individual switches suck less (e.g. easy to use stack, no globals)
could be achieved by having a class similar to `WP_Locale_Switcher`.
That's where a base class makes sense.
It seems like one talks about the former, the other one about the latter.
Why not have both?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37958#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list