mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 13:23:40 +01:00
Ignore comment_max_links option when zero, props tellyworth, fixes #7699
git-svn-id: https://develop.svn.wordpress.org/trunk@8833 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5cb7f1c9bc
commit
622026bb01
@ -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 ( preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", $comment, $out) >= get_option('comment_max_links') )
|
if ( get_option('comment_max_links') && 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_option('moderation_keys'));
|
$mod_keys = trim(get_option('moderation_keys'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user