Changeset 13513 for trunk/wp-includes/comment.php
- Timestamp:
- 02/28/2010 08:02:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r13434 r13513 46 46 return false; // If moderation is set to manual 47 47 48 if ( get_option( 'comment_max_links' ) && preg_match_all( '/<a [^>]*href/i', apply_filters( 'comment_text', $comment ), $out) >= get_option( 'comment_max_links' ) ) 49 return false; // Check # of external links 48 // Check # of external links 49 if ( $max_links = get_option( 'comment_max_links' ) ) { 50 $num_links = preg_match_all( '/<a [^>]*href/i', apply_filters( 'comment_text', $comment ), $out ); 51 $num_links = apply_filters( 'comment_max_links_url', $num_links, $url ); // provide for counting of $url as a link 52 if ( $num_links >= $max_links ) 53 return false; 54 } 50 55 51 56 $mod_keys = trim(get_option('moderation_keys'));
Note: See TracChangeset
for help on using the changeset viewer.