Closed message-dimke closed 1 month ago
@message-dimke This PR fixes the issue with a site deleting/creating feeds with different locales.
You can reproduce the error by:
handle_feed_registration
when logged in as that user.I checked some of the sites that were experiencing this issue. The site's language was different than the language of the admin user in WordPress.com. (Ex: en_GB on the site and en_US on the user, or en_US on the site and es_ES on the user)
I was able to reproduce the problem on @ecgan's test site (🙌 ) and tested that your PR fixes the issue.
@message-dimke Just a small comment:
https://github.com/woocommerce/pinterest-for-woocommerce/pull/1035/files#diff-6b87af8f96b95295b23a6683666ce043f4b648d1c56550cf813f4660911b627bR35
should remove locale
Changes proposed in this Pull Request:
We need the locale from the website, not from the request. Replacing
determine_locale
with theget_locale
function call.How to test
Thanks, @brezocordero !
Changelog entry