WordPress.org

Make WordPress Core

Changeset 9782


Ignore:
Timestamp:
11/19/2008 07:08:37 AM (10 years ago)
Author:
markjaquith
Message:

Count links in comments after performing automatic linking. props tott. fixes #7821

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r9696 r9782  
    4646        return false; // If moderation is set to manual
    4747
    48     if ( get_option('comment_max_links') && preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", $comment, $out) >= get_option('comment_max_links') )
     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') )
    4949        return false; // Check # of external links
    5050
Note: See TracChangeset for help on using the changeset viewer.