[wp-trac] [WordPress Trac] #11684: Comment Moderation Should Count $url
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 8 23:07:50 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 [comment:3 miqrogroove]:
> I'm not completely liking the regexp change. Would it be reasonable to
normalize links before moderation checking? Does the comment_text filter
already do that? In other words, things like "www.mysite.com" are being
converted by WordPress, and that's where other conversions could/should
also happen.
Yes, www.mysite.com is being converted into an actual link by
make_clickable, so really preg_match_all could just count instances of
{{{<a href=}}}, for example, in the comment text.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11684#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list