wp-polylang-translate-rewrite-slugs
wp-polylang-translate-rewrite-slugs copied to clipboard
get_post_language was called incorrectly in ..... class-wp-hook.php
Hi,
Nice tool, it works, thank you!
I found a php warning in a var inside function:
Warning var: $polylang->model->get_post_language(), line 181 from polylang-translate-rewrite-slugs.php deprecated in Polylang v1.8.
If we change to PLL()->model->post->get_language($post->ID) warning dissapears.
If canonical tag exists, your tool prints correct slug, so it doesn't redirect old slugs to new slug, we need add an adittional htacess redirect.
Tested in:
Wordpress: 5.4.2 Polylang: 2.7.4 Php: 7.4.2
Thanks!
@KLicheR @tanelkarp @idflood is this plugin still being maintained? This warning from @thevelop is now a show stopper... with the latest Polylang (version >=3.0), this now throws an error: Call to undefined method PLL_Model::get_post_language() and stops Wordpress from functioning correctly, and so this should be fixed.
This plugin has not been updated in several years. I think this feature is included these days in Polylang pro