comment_id_fields(). see #7635

git-svn-id: https://develop.svn.wordpress.org/trunk@9175 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-10-14 19:06:18 +00:00
parent 4be040914a
commit 635d53975f
2 changed files with 5 additions and 3 deletions
+4 -1
View File
@@ -936,8 +936,11 @@ function cancel_comment_reply_link($text = '') {
*
* @since 2.7.0
*/
function comment_parent_field() {
function comment_id_fields() {
global $id;
$replytoid = isset($_GET['replytocom']) ? (int) $_GET['replytocom'] : 0;
echo "<input type='hidden' name='comment_post_ID' value='$id' />\n";
echo "<input type='hidden' name='comment_parent' id='comment_parent' value='$replytoid' />\n";
}