[wp-trac] [WordPress Trac] #11684: Comment Moderation Should Count $url
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 8 22:49:40 UTC 2010
#11684: Comment Moderation Should Count $url
-----------------------------+----------------------------------------------
Reporter: miqrogroove | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 3.0
Component: Comments | Version:
Severity: major | Keywords: has-patch
-----------------------------+----------------------------------------------
Comment(by filosofo):
Replying to [ticket:11684 miqrogroove]:
> One of the biggest failings of the WordPress moderation system is that
the comment_max_links option has never worked properly. In older
versions, it did not work at all. In 2.8, it seems to only count the
links in $comment correctly, so all the spams with links in $url don't get
moderated.
>
> I've had to hack every version of comment.php to fix this, and it would
be quite nice if it just worked out of the box.
I don't understand why it would be desirable to penalize users for filling
out the URL field. Filling out the URL field is suggested by its very
presence in the comment form, and a significant about of ham comments do;
in other words, I don't think its use correlates well with being spam. In
contrast, a high number of links in the comment text itself does seem to
correlate with the comment's being spam. (But either way this is a clumsy
method of catching spam.)
How about something like this:
{{{
if ( apply_filters('check_comment_max_links',
(
get_option('comment_max_links') &&
count([array of links]) >= get_option('comment_max_links')
),
[array of links],
[comment text],
[commenter's url],
[commenter's name or whatever])
) {
return false;
}
}}}
And then you can get a callback to do all kinds of fun stuff if you want.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11684#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list