WordPress.org

Support

Support » Plugins and Hacks » Spam Captcha » [Resolved] Interfering with comment inserts

[Resolved] Interfering with comment inserts

  • 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/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Sed Lex

    @sedlex

    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

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

    Plugin Author Sed Lex

    @sedlex

    as private ? what do you mean ?

    Plugin Author Sed Lex

    @sedlex

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

    @sedlex

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

    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.

    Plugin Author Sed Lex

    @sedlex

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

    Not sure to understand

    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.

    Plugin Author Sed Lex

    @sedlex

    Ok I understand !
    Thanks for your explanations

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Interfering with comment inserts’ is closed to new replies.
Skip to toolbar