mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
comment link counting improvements from Nazgul. fixes: #938
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5c0b777a29
commit
beece40a1c
@ -833,7 +833,7 @@ function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $
|
|||||||
|
|
||||||
if (1 == get_settings('comment_moderation')) return false; // If moderation is set to manual
|
if (1 == get_settings('comment_moderation')) return false; // If moderation is set to manual
|
||||||
|
|
||||||
if ( (count(explode('http:', $comment)) - 1) >= get_settings('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
|
return false; // Check # of external links
|
||||||
|
|
||||||
$mod_keys = trim( get_settings('moderation_keys') );
|
$mod_keys = trim( get_settings('moderation_keys') );
|
||||||
|
Loading…
Reference in New Issue
Block a user