Compatibility with Polylang
-
Hi Tijmen,
I was happy to see that version 2.2.8 brings in compatibility with Polylang, but I found out there are still some small issues to be resolved.
One thing I get in my debug.log is “Use of undefined constant ICL_LANGUAGE_CODE” on
line 139ofwp-store-locator/inc/class-i18n.php.I dig a bit in the code and this notice is caused by the fact that in
WPSL_i18n::wpml_exists()you determine WPML presence by checking that functionicl_register_stringexists. However, this function is also defined by Polylang for compatibility with WPML-aware plugins, but various ICL_* constants are not, thus the notice.I know it’s maybe problem on Polylang side, but since your plugin is Polylang aware already, I believe it’s an easy one for you to fix.
Thanks for great plugin by the way!
Česlav
The topic ‘Compatibility with Polylang’ is closed to new replies.