[wp-trac] [WordPress Trac] #44758: The REST API is not respecting the user's locale properly.
WordPress Trac
noreply at wordpress.org
Wed Aug 8 21:57:05 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: | Focuses:
-------------------------+------------------------------
Comment (by youknowriad):
I'm happy with any option that would make this work.
I just wanted to react to this sentence that seems wrong to me and
shouldn't dictate solutions:
> the REST API runs in a front-end context where the site locale should
apply
The REST API doesn't run in the front-end and doesn't run in the backend.
The REST API is context-agnostic and should be able to be used properly
anywhere.
And from this, I think a query argument to override any default behavior
the REST API chooses make sense.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44758#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list