Support » Plugin: Weather Station » Weather Station & WPML compatibility

  • Hi,

    This is David from the WPML compatibility team. I’m writing about a problem our users have when Weather Station & WPML are both active.

    Both plugins have a helper function called object_to_array. It seems to be quite a common name, we are not the only ones.

    In WPML we wrap the function definition with function_exists to avoid clashing with other plugins.

    Could you do the same with yours to give our common users a smooth experience?

    if ( ! function_exists( 'object_to_array' ) ) {
    	function object_to_array( $obj ) {
    		// Here goes the function code.

    You might prefer to give it a prefix instead, it’s up to you.

    Thank you in advance.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pierre Lannoy


    Hello David!

    Thanks for the ping 😉
    It’s an issue I was not aware of… Your user JC is not very fair, nobody has never contacted me for this type of issue 🙁
    Nevermind, I will publish a patch today…

    Thanks again.

    Plugin Author Pierre Lannoy


    Version 3.4.4 is released. It avoids name collision with WPML functions.
    Please, let me know if all is ok for you…


    Thank you for the speedy reply and release.
    I will let you know if we come across anything else.

    Good day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Weather Station & WPML compatibility’ is closed to new replies.