Ticket #7821: patch_comment_moderation_link_count.2.diff
File patch_comment_moderation_link_count.2.diff, 780 bytes (added by , 16 years ago) |
---|
-
wp-includes/comment.php
45 45 if ( 1 == get_option('comment_moderation') ) 46 46 return false; // If moderation is set to manual 47 47 48 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') )48 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') ) 49 49 return false; // Check # of external links 50 50 51 51 $mod_keys = trim(get_option('moderation_keys'));