This repository has been archived by the owner on Mar 17, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WooCommerce 3.2.0 introduced different handling of Ajax endpoint URLs, including call to home_url() function, for more info see woocommerce/woocommerce#16991 This breaks Polylang language detection if language is set from the directory name in pretty permalinks. To address this issue we need to add WooCommerce class-wc-ajax.php file to the white list of the Polylang home_url filter, enabling home_url() function to return correct URL according to the language set.
- Loading branch information