Having upgraded to WordPress 2.0 the other day, I knew that something had gone horribly wrong with the Bot Check plugin when I logged into my dashboard today and saw 33 comments in the moderation queue. A quick test revealed of course that Bot Check was accepting comments without the numeric code.
I found the solution in comment 87 on the Bot Check page.
This plugin doesnâ€™t work because â€œpost_comment_textâ€, the filter it hooks into WordPress with, was deprecated but still supported in WP 1.5. It has totally gone away in WP 2.0.
If you change â€œpost_comment_textâ€ to â€œpreprocess_commentâ€ in bot-check.php, everything works the same way as it always did. (Including eating the comment text if the user enters the wrong numeric string.)
Unfortunately, as is typical with WordPress plugins, the author has not released a new version. I had to make the change myself.
Anyway thankfully now it’s working. Thanks, number 87!
Oh and a big middle finger to the asshole(s) who were attempting to cover my blog with porn links. Now I can go back and pretend that you don’t exist once again.