mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 06:55:28 +00:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@10453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a196faec47
commit
9bdf38f5c2
@ -45,7 +45,7 @@ function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $
|
|||||||
if ( 1 == get_option('comment_moderation') )
|
if ( 1 == get_option('comment_moderation') )
|
||||||
return false; // If moderation is set to manual
|
return false; // If moderation is set to manual
|
||||||
|
|
||||||
if ( get_option('comment_max_links') && preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", apply_filters('comment_text', $comment), $out) >= get_option('comment_max_links') )
|
if ( get_option('comment_max_links') && preg_match_all("/<[Aa][^>]*[Hh][Rr][Ee][Ff]=['\"]([^\"'>]+)[^>]*>/", apply_filters('comment_text',$comment), $out) >= get_option('comment_max_links') )
|
||||||
return false; // Check # of external links
|
return false; // Check # of external links
|
||||||
|
|
||||||
$mod_keys = trim(get_option('moderation_keys'));
|
$mod_keys = trim(get_option('moderation_keys'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user