Title: Small code change
Last modified: August 30, 2016

---

# Small code change

 *  [PaulIsLoud](https://wordpress.org/support/users/paulisloud/)
 * (@paulisloud)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/small-code-change/)
 * Hi Thomas,
 * I’d like to request a small one-line code change in your plugin. Every time I
   update the plugin, I have to fix this manually:
 * Line 526 of mailchim-comment-optin.php:
 * Change:
 * echo ‘<input type=”checkbox” name=”tgm_mc_get_subscribed” id=”tgm-mc-get-subscribed”
   value=”subscribe” style=”width: auto;” ‘ . $checked . ‘ />’;
 * To:
 * echo ‘<input type=”checkbox” name=”tgm_mc_get_subscribed” id=”tgm_mc_get_subscribed”
   value=”subscribe” style=”width: auto;” ‘ . $checked . ‘ />’;
 * The only change is consistency with using underscores instead of dashes in the
   ID.
 * This change breaks my custom checkboxes.
 * Best,
    Paul
 * [https://wordpress.org/plugins/mailchimp-comment-optin/](https://wordpress.org/plugins/mailchimp-comment-optin/)

Viewing 1 replies (of 1 total)

 *  [Thiago Censi](https://wordpress.org/support/users/frq/)
 * (@frq)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/small-code-change/#post-6694377)
 * Can confirm. To put it in other words:
 * The for attribute of the label element (tgm_mc_get_subscribed) doen’t match the
   id attribute of the checkbox (tgm-mc-get-subscribed).
 * `<input type="checkbox" name="tgm_mc_get_subscribed" id="tgm-mc-get-subscribed"
   value="subscribe" style="width: auto;" checked="checked">`
    `<label for="tgm_mc_get_subscribed"
   > Se inscreva em nossa newsletter</label>`
 * Since the id attribute seems out of consistency with the rest of the code, it
   should be the one to be changed.
 * Thanks.
 * – Edit: added code

Viewing 1 replies (of 1 total)

The topic ‘Small code change’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mailchimp-comment-optin.svg)
 * [MailChimp Comment Optin](https://wordpress.org/plugins/mailchimp-comment-optin/)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-comment-optin/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-comment-optin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-comment-optin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-comment-optin/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Thiago Censi](https://wordpress.org/support/users/frq/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/small-code-change/#post-6694377)
 * Status: not resolved