[wp-trac] [WordPress Trac] #44758: The REST API is not respecting the user's locale properly.

WordPress Trac noreply at wordpress.org
Fri Sep 14 17:39:43 UTC 2018


#44758: The REST API is not respecting the user's locale properly.
-------------------------------------------------+-------------------------
 Reporter:  youknowriad                          |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  REST API                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  2nd-opinion has-patch has-unit-      |     Focuses:
  tests dev-feedback                             |
-------------------------------------------------+-------------------------

Comment (by mnelson4):

 Thanks for the direction, @swissspidy.

 > Doesn't sound like an issue to me.

 So you're saying that, once you've committed #38218, we should be fine
 calling `switch_to_locale()` during `WP_REST_Server::serve_request()`
 which happens during the `parse_request` action, right? Is the reason for
 that because, besides CPT strings, there are very few strings translated
 before that?

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


More information about the wp-trac mailing list