Update class.yith-wcwl.php
-
I posted on github originally, but they sent me here so I’ll just post what I’ve posted there.
While validating a page that has woocommerce with wishlist plugin enabled I was getting a ‘& did not start a character reference’ error. So after looking into files I found an escaped ampersand character in the ‘$url’ variable in class.yith-wcwl.php.
On line 283 originally it was:
$url = YITH_WCWL_URL . "yith-wcwl-ajax.php?action=add_to_wishlist&add_to_wishlist=" . $product->id;
After changing it to (& to & amp; (separately written since coding is always outputs amp one as &))
$url = YITH_WCWL_URL . "yith-wcwl-ajax.php?action=add_to_wishlist&add_to_wishlist=" . $product->id;
The error was gone. So that should be changed in next version.
https://www.ads-software.com/plugins/yith-woocommerce-wishlist/
- The topic ‘Update class.yith-wcwl.php’ is closed to new replies.