wp-polylang-translate-rewrite-slugs
wp-polylang-translate-rewrite-slugs copied to clipboard
Problem with links to taxonomies whose translation is not enabled
Hello,
Thanks for your great work.
I think I discovered a bug with your plugin.
I have a custom post type with three taxonomies.
For two of these taxonomies the translation is enabled in Polylang Settings Page and everything works correctly when I use pll_translated_taxonomy_rewrite_slugs.
But, for the one whose translation is not enabled in Polylang Settings Page, the url return by get_term_link() is not good.
By default, the url of this taxonomy is the one of the main language without the country code: https://www.mywebsite.com/mytaxslug/myterm but when I use pll_translated_taxonomy_rewrite_slugs this url no longer works even if this taxomomy is not present in the $post_type_translated_slugs table.
When I delete add_filter(... it works again...
Thanks for your help,
Laurent