GeotagPhoto wordpress plugin not working with other languages using WPML plugin.
-
I am using WPML and the GeotagPhoto plugin. I noticed the plugin does not show the icon link to the Google map if I go in another language than the default language. WPML is configured to use language parameter on my blog (i.e. https://blog.jonathantessier.com?lang=fr) and this is causing the issue.
Apply to : GeotagPhoto Version 0.8.6
Module : geotagphoto.php, line 195Replace:
$finalpath = str_replace( get_bloginfo(‘home‘), ABSPATH, $image);By :
$finalpath = str_replace( get_bloginfo(‘wpurl‘), ABSPATH, $image);Note : “home” is deprecated for the get_bloginfo function and it is returning the language parameter that cause the issue. “wpurl” does not return it. This should fix the problem.
- The topic ‘GeotagPhoto wordpress plugin not working with other languages using WPML plugin.’ is closed to new replies.