Make WordPress Core


Ignore:
Timestamp:
12/01/2009 02:06:02 AM (15 years ago)
Author:
ryan
Message:

Accept either user_id or user_ID. Remove user_id global. see #11271 #11222

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments-post.php

    r12284 r12300  
    7676$comment_parent = isset($_POST['comment_parent']) ? absint($_POST['comment_parent']) : 0;
    7777
    78 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_id');
     78$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_ID');
    7979
    8080$comment_id = wp_new_comment( $commentdata );
Note: See TracChangeset for help on using the changeset viewer.