[POLYLANG] Polylang and Redirection
-
Hello,
I have multisite wp installation, and I use Polylang plugin for multilanguage support. A problem occured while adding a new post in language that is NOT default language (in my case Croatian is default language, and English is secodary language).
So, when I add a new post in English language Redirection plugin automatically adds a new redirection from /en/ slug to the newly created post.I tracked down this problem and found cause for this behaviour:
In class Red_Monitor ( models/monitor.php) there is function
insert_old_post
that gets current post’s permalink and adds redirection to the URL path of this post. Since the post is a new post, and polylang uses url path for language detection URL path is set to Polylang language ( /en/ in my case), so when post is published redirection is automatically added.I can disable monitoring posts and this would’n happen but i need posts monitoring (in case of other posts’ changes).
- The topic ‘[POLYLANG] Polylang and Redirection’ is closed to new replies.