Make WordPress Core


Ignore:
Timestamp:
10/14/2008 07:06:18 PM (18 years ago)
Author:
ryan
Message:

comment_id_fields(). see #7635

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r9114 r9175  
    937937 * @since 2.7.0
    938938 */
    939 function comment_parent_field() {
     939function comment_id_fields() {
     940    global $id;
     941
    940942    $replytoid = isset($_GET['replytocom']) ? (int) $_GET['replytocom'] : 0;
     943    echo "<input type='hidden' name='comment_post_ID' value='$id' />\n";
    941944    echo "<input type='hidden' name='comment_parent' id='comment_parent' value='$replytoid' />\n";
    942945}
Note: See TracChangeset for help on using the changeset viewer.