Changeset 8833

Show
Ignore:
Timestamp:
09/06/08 05:59:56 (3 months ago)
Author:
azaozz
Message:

Ignore comment_max_links option when zero, props tellyworth, fixes #7699

Files:

Legend:

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

    r8813 r8833  
    4646        return false; // If moderation is set to manual 
    4747 
    48     if ( 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", $comment, $out) >= get_option('comment_max_links') ) 
    4949        return false; // Check # of external links 
    5050