Making WordPress.org

Changeset 11218


Ignore:
Timestamp:
09/08/2021 04:20:55 AM (3 years ago)
Author:
dd32
Message:

Plugin Directory: Search: Respect the locale requested on API searches.

Previously the search code respected a locale parameter that was being passed, however the newer code uses get_locale() which is more appropriate.

Unfortunately the Query_Plugins endpoint wasn't setting the locale prior to querying, which resulted in the Search operating in English only.

Props vendidero for noticing.
See https://wordpress.slack.com/archives/C02QB8GMM/p1631004840031000
Related to [11160-11163].

File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.