Changeset 16357
- Timestamp:
- 11/13/2010 10:30:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r16353 r16357 46 46 return false; // If moderation is set to manual 47 47 48 $comment = apply_filters( 'comment_text', $comment ); 49 48 50 // Check # of external links 49 51 if ( $max_links = get_option( 'comment_max_links' ) ) { 50 $num_links = preg_match_all( '/<a [^>]*href/i', apply_filters( 'comment_text', $comment ), $out );52 $num_links = preg_match_all( '/<a [^>]*href/i', $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 )
Note: See TracChangeset
for help on using the changeset viewer.