WordPress.org

Make WordPress Core

Changeset 4300


Ignore:
Timestamp:
10/04/06 04:45:22 (8 years ago)
Author:
markjaquith
Message:

comment link counting improvements from Nazgul. fixes: #938

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/comment-functions.php

    r4294 r4300  
    834834    if (1 == get_settings('comment_moderation')) return false; // If moderation is set to manual 
    835835 
    836     if ( (count(explode('http:', $comment)) - 1) >= get_settings('comment_max_links') ) 
     836    if ( preg_match_all("|(href\t*?=\t*?['\"]?)?(https?:)?//|i", $comment, $out) >= get_option('comment_max_links') ) 
    837837        return false; // Check # of external links 
    838838 
Note: See TracChangeset for help on using the changeset viewer.