Ticket #938: 938b.diff
| File 938b.diff, 0.6 kB (added by Nazgul, 2 years ago) |
|---|
-
wp-includes/comment.php
old new 5 5 6 6 if (1 == get_option('comment_moderation')) return false; // If moderation is set to manual 7 7 8 if ( (count(explode('http:', $comment)) - 1) >= get_option('comment_max_links') )8 if ( preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", $comment, $out) >= get_option('comment_max_links') ) 9 9 return false; // Check # of external links 10 10 11 11 $mod_keys = trim( get_option('moderation_keys') );
