Changeset 10453
- Timestamp:
- 01/28/2009 09:12:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r10449 r10453 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
Note: See TracChangeset
for help on using the changeset viewer.