comment link counting improvements from Nazgul. fixes: #938

git-svn-id: https://develop.svn.wordpress.org/trunk@4299 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2006-10-04 04:43:25 +00:00
parent 290a8b1a35
commit f66977080e
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $
if (1 == get_option('comment_moderation')) return false; // If moderation is set to manual
if ( (count(explode('http:', $comment)) - 1) >= get_option('comment_max_links') )
if ( preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", $comment, $out) >= get_option('comment_max_links') )
return false; // Check # of external links
$mod_keys = trim( get_option('moderation_keys') );