Make WordPress Core

Changeset 1056


Ignore:
Timestamp:
04/07/2004 12:48:19 AM (21 years ago)
Author:
saxmatt
Message:

check_comment should return false if there are no comment moderation keys.

File:
1 edited

Legend:

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

    r1042 r1056  
    15691569
    15701570function check_comment($author, $email, $url, $comment, $user_ip) {
    1571     if (1 == get_settings('comment_moderation')) return false;
     1571    if (1 == get_settings('comment_moderation')) return false; // If moderation is set to manual
     1572    if ('' == trim( get_settings('moderation_keys') ) ) return true; // If moderation keys are empty
    15721573    $words = explode("\n", get_settings('moderation_keys') );
    15731574    foreach ($words as $word) {
     
    15851586    if ($number >= get_settings('comment_max_links')) return false;
    15861587
    1587 return true;
     1588    return true;
    15881589}
    15891590
Note: See TracChangeset for help on using the changeset viewer.