• Resolved Steve

    (@steveatty)


    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?

    https://www.ads-software.com/extend/plugins/spam-captcha/

Viewing 9 replies - 1 through 9 (of 9 total)
  • 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

    Thread Starter Steve

    (@steveatty)

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

    as private ? what do you mean ?

    remove_action('preprocess_comment', array('spam_captcha','check_comment_captcha'));
    remove_action('wp_insert_comment', array('spam_captcha','check_comment_akismet'));

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

    Thread Starter Steve

    (@steveatty)

    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.

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

    Not sure to understand

    Thread Starter Steve

    (@steveatty)

    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.

    Ok I understand !
    Thanks for your explanations

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