Make WordPress Core


Ignore:
Timestamp:
09/22/2004 07:44:35 PM (21 years ago)
Author:
michelvaldrighi
Message:

fixes for bug #311, by bronski

File:
1 edited

Legend:

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

    r1630 r1705  
    357357    extract($commentdata);
    358358
    359     $comment_post_id = (int) $comment_post_id;
     359    $comment_post_ID = (int) $comment_post_ID;
    360360
    361361    $comment_author = strip_tags($comment_author);
     
    386386    }
    387387
    388     if( check_comment($author, $email, $url, $comment, $user_ip, $user_agent) )
     388    if( check_comment($comment_author, $comment_author_email, $comment_author_url, $comment_content, $user_ip, $user_agent) )
    389389        $approved = 1;
    390390    else
     
    394394    (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved, comment_agent)
    395395    VALUES
    396     ('$comment_post_ID', '$author', '$email', '$tb_url', '$user_ip', '$now', '$now_gmt', '$comment', '$approved', '$user_agent')
     396    ('$comment_post_ID', '$comment_author', '$comment_author_email', '$comment_author_url', '$user_ip', '$now', '$now_gmt', '$comment_content', '$approved', '$user_agent')
    397397    ");
    398398
Note: See TracChangeset for help on using the changeset viewer.