[wp-trac] [WordPress Trac] #26511: Introduce a locale-switching function

WordPress Trac noreply at wordpress.org
Tue Sep 6 22:53:03 UTC 2016


#26511: Introduce a locale-switching function
--------------------------------------+------------------------
 Reporter:  johnbillion               |       Owner:
     Type:  feature request           |      Status:  reviewing
 Priority:  normal                    |   Milestone:  4.7
Component:  I18N                      |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------

Comment (by GaryJ):

 Replying to [comment:45 johnjamesjacoby]:

 > Similarly, the mechanics of stashing the current *thing*, switching to a
 new *thing*, and restoring the original *thing* are pretty common
 (consider `$wp_query` or `wp_reset_postdata()` for existing examples).

 Right, so that's behaviour, which can be defined in an interface so that
 the common actions of `stash()`, `switch()` and `restore()` (to use your
 parlance as an example) are consistent, regardless of what the *thing* is.

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


More information about the wp-trac mailing list