Title: Bug in The Code
Last modified: March 12, 2020

---

# Bug in The Code

 *  [Dinesh Kesharwani](https://wordpress.org/support/users/cyberwani/)
 * (@cyberwani)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/bug-in-the-code-2/)
 * Hello,
 * There is an issue in the code.
    [https://plugins.trac.wordpress.org/browser/yith-woocommerce-compare/tags/2.3.19/templates/compare.php#L119](https://plugins.trac.wordpress.org/browser/yith-woocommerce-compare/tags/2.3.19/templates/compare.php#L119)
 * It should be:
    `data-product_id="<?php echo esc_attr( $product_id ); ?>"><?php
   esc_html_e('Remove', 'yith-woocommerce-compare') ?>`
 * Instead of:
    `data-product_id="<?php echo esc_attr( product_id ); ?>"><?php esc_html_e('
   Remove', 'yith-woocommerce-compare') ?>`
 * The “product_id” variable is without “$”.

Viewing 1 replies (of 1 total)

 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/bug-in-the-code-2/#post-12551438)
 * Hi there,
    thank you for your reporting. We have just fixed the issue and release
   the version 2.3.20. Please update to it to solve the problem.

Viewing 1 replies (of 1 total)

The topic ‘Bug in The Code’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-compare/assets/icon.svg?rev=3042935)
 * [YITH WooCommerce Compare](https://wordpress.org/plugins/yith-woocommerce-compare/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-compare/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-compare/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-compare/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-compare/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-compare/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/bug-in-the-code-2/#post-12551438)
 * Status: not resolved