[wp-trac] [WordPress Trac] #51871: Site Health actions that use the REST API receive an untranslated response

WordPress Trac noreply at wordpress.org
Wed Nov 25 13:47:40 UTC 2020


#51871: Site Health actions that use the REST API receive an untranslated response
--------------------------+--------------------------------
 Reporter:  oglekler      |       Owner:  TimothyBlynJacobs
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  5.6
Component:  Site Health   |     Version:  5.6
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  rest-api
--------------------------+--------------------------------
Changes (by TimothyBlynJacobs):

 * owner:  (none) => TimothyBlynJacobs
 * status:  new => assigned
 * milestone:  Awaiting Review => 5.6


Comment:

 Great catch @oglekler! This is because we aren't passing `_locale=user` to
 the REST API as a query parameter. The `apiFetch` package automatically
 applies this as a middleware, but the simpler `apiRequest` package does
 not.

 Patch coming up.

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


More information about the wp-trac mailing list