bug in polylang compatibillity
-
Hello,
I noticed a bug in the Polylang_Compat::change_push_uri() method.
The order of the arguments in the str_replace functions is wrong.
Instead of:
$data['MerchantSettings']['PushUri'] = str_replace( pll_home_url(), home_url( '/' ), $data['MerchantSettings']['PushUri'] );
It should be:
$data['MerchantSettings']['PushUri'] = str_replace( home_url( '/' ), pll_home_url(), $data['MerchantSettings']['PushUri'] );
Please compare it with the WPML_Compat::change_push_url() method that seems to be written correctly.
- You must be logged in to reply to this topic.