Make WordPress Core

Changeset 1705


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

fixes for bug #311, by bronski

Location:
trunk
Files:
2 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
  • trunk/wp-trackback.php

    r1696 r1705  
    6363        $blog_name = (strlen($blog_name) > 250) ? substr($blog_name, 0, 250) . '...' : $blog_name;
    6464
    65         $comment_post_id = $tb_id;
    66         $commment_author = $blog_name;
     65        $comment_post_ID = $tb_id;
     66        $comment_author = $blog_name;
    6767        $comment_author_email = '';
    6868        $comment_author_url = $tb_url;
    … …  
    7070        $comment_type = 'trackback';
    7171
    72         $commentdata = compact('comment_post_id', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type');
     72        $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type');
    7373
    7474        wp_new_comment($commentdata);
Note: See TracChangeset for help on using the changeset viewer.