What previously commented feature are you talking about?
Thread Starter
LB
(@lb)
It’s the same feature referenced here:
http://wordpress.org/support/topic.php?id=25803
“Comment author must have a previously approved comment”
The feature has a bug. Commenters NOT previously approved are getting through. I believe this patch will fix it:
http://mosquito.wordpress.org/view.php?id=1057
I just don’t know how to implement the patch.
ah ok, well you can open up that comment-functions.patch file with a text editor and view the changes that it makes in there, and then manually change everything. I’m not sure how you run a .patch file though so there could be an easier way to do this.
Thread Starter
LB
(@lb)
Can anyone tell me which folder I put the patch into?
you don’t need to put the patch into any folder. Just open up the patch file with a text editor and read what it says inside and try to figure out the changes that it makes.
Thread Starter
LB
(@lb)
Changes it makes to what? That’s what I’m not getting. For instance, I downloaded this patch to my hard drive:
— wordpress/comment-functions.php Tue Jan 11 23:41:18 2005
+++ wptest/comment-functions.php Tue Jan 11 23:38:54 2005
@@ -725,8 +725,11 @@
if ( 1 == get_settings(‘comment_whitelist’)) {
if( $author != ” && $email != ” ) {
$ok_to_comment = $wpdb->get_var(“SELECT comment_approved FROM $wpdb->comments WHERE comment_author = ‘$author’ AND comment_author_email = ‘$email’ and comment_approved = ‘1’ “);
– if ( 1 == $ok_to_comment && false === strpos( $email, get_settings(‘moderation_keys’)) )
+ if ( 1 == $ok_to_comment && false === strpos( $email, get_settings(‘moderation_keys’)) ) {
return true;
+ } else {
+ return false;
+ }
}
if ( ‘trackback’ == $comment_type || ‘pingback’ == $comment_type ) { // check if domain is in blogroll
$uri = parse_url($url);
@@ -764,4 +767,4 @@
return true;
}
-?>
\ No newline at end of file
+?>
Am I supposed to have a file called “comment-functions.php?” Do I look there and make the changes that appear in the patch?
yes, in your wp-includes folder you have a comment-functions.php. i’m guessing you’ll want to change the lines that have a – before them and add in the lines with a + before them. Save a backup just in case though.