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.
Fix Ajax endpoint URL again, fixes #319
Another change in WC_AJAX->get_endpoint() implementation - see woocommerce/woocommerce#19139 - this time it returns relative URLs. This breaks Polylangs home_url() filter, which can't handle them. We have to use woocommerce_ajax_get_endpoint filter to alter the AJAX endpoint URL according to the current language - replace the path part of the URL with the correct relative home URL and append the query string.
- Loading branch information