Forums

Subscribe to Double-Opt-In Comments
[resolved] Fix: Check postids empty before remove (3 posts)

  1. lulalala
    Member
    Posted 1 year ago #

    Hi,
    When in the subscription page, when I try to remove subscription without ticking any posts, an error will be displayed at the top. I fixed this by having the following check inside the remove_subscriptions() method:

    if(empty($postids))
      return $removed;

    Cheers

    http://wordpress.org/extend/plugins/subscribe-to-double-opt-in-comments/

  2. lulalala
    Member
    Posted 1 year ago #

    And also since I have comment form at each post in index, I had to remove the use of $sg_subscribe->checkbox_shown = true.

    I also has to change the html to this to avoid duplicate IDs.
    <input type="checkbox" name="subscribe" id="subscribe<?php echo get_the_ID() ?>"...

    Hope this might be of help to you.

  3. Tobiask
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic