WordPress.org

Ready to get started?Download WordPress

Forums

Spam Captcha
[resolved] Interfering with comment inserts (10 posts)

  1. Steve
    Member
    Posted 1 year ago #

    My plugin makes calls to wp_insert_comment($data) to insert comments into the comment queue.

    Your plugin seems to be intercepting this and trying to insert a captcha ... which of course my code cannot respond to.

    It is possible for me to add something to the comment_meta to indicate to your plugin that the comments should not invoke your plugin?

    http://wordpress.org/extend/plugins/spam-captcha/

  2. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    Hi

    Actually I never anticipate such issue

    Have you try to load your plugin before mine ? If you only insert the comment on rare moment you could deactivate (remove_actions or remove_filter) the plugin

  3. Steve
    Member
    Posted 1 year ago #

    Haven't you declared all your calls as private? I suspect that makes it hard to me to unhook things.

  4. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    as private ? what do you mean ?

  5. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    remove_action('preprocess_comment', array('spam_captcha','check_comment_captcha'));
    remove_action('wp_insert_comment', array('spam_captcha','check_comment_akismet'));
  6. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    is it solved ?
    Have you manage to overcome your problem ?

  7. Steve
    Member
    Posted 1 year ago #

    I've changed the author_id which I think, looking at your code, should fix it but the person who reported the problem has stopped using your plugin since I released the fix so I've no idea if it worked or not.

  8. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    Errr ... You are not the one who reported the issue ?
    What author_id ?

    Not sure to understand

  9. Steve
    Member
    Posted 1 year ago #

    The problem was reported to me by a user of my application and I did some investigation. So I raised the problem her but I wasn't the person with the problem.

    I meant the comment author_id - I now set it to 1 which your plugin basically whitelists.

  10. Sed Lex
    Member
    Plugin Author

    Posted 1 year ago #

    Ok I understand !
    Thanks for your explanations

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.