[wp-trac] [WordPress Trac] #44758: The REST API is not respecting the user's locale properly.
WordPress Trac
noreply at wordpress.org
Thu Oct 18 23:45:27 UTC 2018
#44758: The REST API is not respecting the user's locale properly.
-------------------------------------------------+-------------------------
Reporter: youknowriad | Owner: pento
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.0
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion has-patch has-unit- | Focuses: rest-api
tests dev-feedback |
-------------------------------------------------+-------------------------
Comment (by mnelson4):
I took this for a spin and it works provided you remember to set the
`Accept` header to `application/json`. I normally don't bother doing that,
so it's a gotcha IMO. It would be nice if that weren't necessary, but I'm
not sure if that's possible.
Also, I just realized the new method, regardless of its name, should
probably have a `wp_` prefix on it to avoid possible collisions, right?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44758#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list