Make WordPress Core


Ignore:
Timestamp:
03/25/2004 10:11:58 AM (22 years ago)
Author:
saxmatt
Message:

If more than X links in a comment, moderate that sucker.

File:
1 edited

Legend:

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

    r1009 r1011  
    15781578        if ( preg_match($pattern, $user_ip) ) return false;
    15791579    }
     1580
     1581    preg_match_all('|([\n ])([a-z]+?)://([^, <>{}\n\r]+)|i', $comment, $all_links);
     1582    $number = count($all_links[0]);
     1583    if ($number >= get_settings('comment_max_links')) return false;
     1584
    15801585return true;
    15811586}
Note: See TracChangeset for help on using the changeset viewer.