Make WordPress Core

Changeset 9175


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

comment_id_fields(). see #7635

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/comments.php

    r9112 r9175  
    7979
    8080<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
    81 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    82 <?php comment_parent_field(); ?>
     81<?php comment_id_fields(); ?>
    8382</p>
    8483<?php do_action('comment_form', $post->ID); ?>
  • 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.