[wp-trac] [WordPress Trac] #57945: Locale bug in short-circuited WP REST API request via rest_pre_dispatch?
WordPress Trac
noreply at wordpress.org
Sun Mar 19 15:11:33 UTC 2023
#57945: Locale bug in short-circuited WP REST API request via rest_pre_dispatch?
-------------------------------------+------------------------------
Reporter: joeyojoeyo12 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 6.1.1
Severity: normal | Resolution:
Keywords: reporter-feedback close | Focuses:
-------------------------------------+------------------------------
Changes (by TimothyBlynJacobs):
* keywords: => reporter-feedback close
* severity: critical => normal
Comment:
Hi @joeyojoeyo12,
To handle the locale, you can set either `?_locale=user` to return the
content in the user's locale, or `?_locale=site` to return the content in
the site's locale.
See #44758.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57945#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list