WordPress.org

Make WordPress Core

Changeset 4299


Ignore:
Timestamp:
10/04/06 04:43:25 (8 years ago)
Author:
markjaquith
Message:

comment link counting improvements from Nazgul. fixes: #938

File:
1 edited

Legend:

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

    r4293 r4299  
    66    if (1 == get_option('comment_moderation')) return false; // If moderation is set to manual 
    77 
    8     if ( (count(explode('http:', $comment)) - 1) >= get_option('comment_max_links') ) 
     8    if ( preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", $comment, $out) >= get_option('comment_max_links') ) 
    99        return false; // Check # of external links 
    1010 
Note: See TracChangeset for help on using the changeset viewer.