Since I installed wordpress 2.7, RANDOMLY some comments go into the "Pending Zone" even if my blog is free from all moderation. Why is that? How can I remove it? Is there some nasty secret that I don't know?
another thing is that I can't retrieve the name of the author of the comment on the forms once he had already typed one comment.. why??
No one knows what the problem MAY be?
Chintaru
Member
Posted 4 years ago #
I have the problem as well, it's very annoying...
Chintaru
Member
Posted 4 years ago #
I searched a bit and it seems to be related to the Custom Smilies plugin. Apparently, WP 2.7 marks the smilies as links. In my case, all comments containing more than 1 link would automatically need to be approved. Since WP counts smilies as links (and people tend to use more than 1 smiley in their comment) the comments were held for moderation. I set the option to 10 links now :)
I have been having this same problem and indeed I am using a smilies plugin. My visitors really like them so I hope not to have to remove them. Has anyone found a work around for this problem besides setting the links option so high?
Chintaru
Member
Posted 4 years ago #
I found a fix a few days ago:
Fix: Change the regular expression [line 48 in wp-includes/comment.php] to this:
|(href\t*?=\t*?['\"]?)(https?:)?//|i
Eliminate that center question mark. If we're applying the comment_text filter first, then any unlinked http uris will have been autolinked already, meaning that the href= will exist around them. Making it not necessary for it to be optional.
This will also eliminate the false positive on an img src="http:whatever"