I’ve written about this to Matt but haven’t heard anything back and so, I’m posting this here as well :p Basically, the problem is this. The WP code calls all hooked actions for ‘comment_post’ after it has already sent out an e-mail confirming the posting of the comment or the holding of the comment for moderation based on the internal spam checks. However, if you have a anti-spam plugin, you’ll be hooking into ‘comment_post’ in your plugin but even if your plugin holds the comment for moderation based on your logic, the cofirmation e-mail has already gone out.
So what I suggested was that WP core code holds or approves the comment and then calls the hooked actions for ‘comment_post’ and after that check the status of the comment again and then send out the confirmation of posting or held for moderation e-mail out. BTW, the code I’m talking about is in wp-comments-post.php. What do you think?
- You must be logged in to reply to this topic.