Ticket #14681: 14681.patch
File 14681.patch, 793 bytes (added by , 15 years ago) |
---|
-
wp-includes/comment.php
47 47 48 48 // Check # of external links 49 49 if ( $max_links = get_option( 'comment_max_links' ) ) { 50 $num_links = preg_match_all( '/<a [^>]*href/i', apply_filters( 'comment_text', $comment ), $out ); 50 $comment = apply_filters( 'comment_text', $comment ); 51 $num_links = preg_match_all( '/<a [^>]*href/i', $comment , $out ); 52 $num_links = apply_filters( 'comment_max_links_comment', $num_links, $comment, $out ); 51 53 $num_links = apply_filters( 'comment_max_links_url', $num_links, $url ); // provide for counting of $url as a link 52 54 if ( $num_links >= $max_links ) 53 55 return false;