[wp-meta] [Making WordPress.org] #2415: API doesn't return translated plugin infomation

Making WordPress.org noreply at wordpress.org
Fri Jan 20 20:40:25 UTC 2017


#2415: API doesn't return translated plugin infomation
------------------------------+-------------------------
 Reporter:  ocean90           |      Owner:
     Type:  defect            |     Status:  new
 Priority:  normal            |  Milestone:
Component:  Plugin Directory  |   Keywords:  needs-patch
------------------------------+-------------------------
 The new code for the api.w.org endpoint returns only results in English
 because the
 [https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html
 /wp-content/plugins/plugin-directory/class-plugin-
 directory.php?rev=4620&marks=456-461#L455 translation filters] are not
 registered. `Plugins_Info_API::load_wordpress()` sets
 `$_SERVER['HTTP_HOST']` to `wordpress.org` which means `get_locale()`
 returns `en_US`.

 I think we should set `$_SERVER['HTTP_HOST']` to the site of the requested
 locale.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2415>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list