Since upgrading to WordPress 2.7, I’ve had an annoying issue with comment moderation. It wasn’t a showstopping problem and I was able to work around it but when I did my personal WordPress spring cleaning last weekend, I decided to find a solution to the problem.
So, what was the problem? Well, comments were going into moderation that shouldn’t have been based on my Discussion settings.
I have my Discussion settings to moderate the first two times someone comments and if there are more than two links in the comment.
Once someone has commented and been approved twice I’ve decided they are trustworthy and they can then leave a comment without being moderated. Unless, the comment has more than two links in it. Then it has to be moderated again because we know how spammers (not my visitors) love to leave viagra links.
But after upgrading to 2.7, people who had long since been approved commentators were being put into moderation. I couldn’t figure out a pattern to it either. Sometimes their comments went into moderation and other times they didn’t – I didn’t see any logic behind it.
Like I said, this wasn’t a big blog problem but it annoyed me because I didn’t want my regular visitors to be moderated.
So, I went to the WordPress forums and discovered that there is a bug that Otto calls the smiley bug.
Under Settings > Writing you can set emoticons, or the little smiley faces, to be converted into an image. WordPress 2.7 thinks the image is a link so the comment goes into moderation. Remember, I allow two links and believe those are already being used by the url for the commentator’s website and commentluv, so if the commentator included an emoticon, the comment got put into moderation.
The smiley bug has been added to Trac, the WordPress bug database, and will be corrected in a future release.
There are, however, two workarounds in the meantime:
- In Settings > Writing uncheck the box to have emoticons converted to images. This is the solution I decided to use.
- In Settings > Discussion increase the number of links allowed in a comment to something high like 10. I didn’t go with this solution because I couldn’t decide how many links to allow and I felt that it increased the possibility of spam getting through.
I was really pleased to find out that this was a bug and what was causing the problem. I’m also glad that there are a couple of workarounds.
Have any of you experienced this in 2.7?
photo credit: Major Clanger