Several people have noticed that the Math Comment Spam Protection plugin stopped working in WordPress 3.0.
I poked around a bit, and found the problem. The fix is simple:
Find Line 211 of math-comment-spam-protection.php:
The offending code is this:PHP Code:if ( ( !isset($user_ID) ) && ( $comment_data['comment_type'] == ” ) ) { // Do not check if the user is registered & do not check trackbacks/pingbacks
Simply change the above to this:PHP Code:( !isset($user_ID)
So that Line 211 looks like the following:PHP Code:( ! $user_ID )
Voila! The Math Comment Spam Protection plugin will now work again!PHP Code:if ( ( ! $user_ID ) && ( $comment_data['comment_type'] == ” ) ) { // Do not check if the user is registered & do not check trackbacks/pingbacks
(Cross-posting this, to make sure the fix is readily available. It seems that the plugin developer is no longer supporting the plugin, though I'm going to try to contact him to see if he'll patch the original with the above fix. I really don't want to fork (and support) the plugin for something so simple.)


LinkBack URL
About LinkBacks



Reply With Quote
