Changeset 14067 for trunk/wp-includes/comment-template.php
- Timestamp:
- 04/11/2010 08:56:18 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r13991 r14067 1132 1132 1133 1133 /** 1134 * Retrieve hidden input HTML for replying to comments. 1135 * 1136 * @return string Hidden input HTML for replying to comments 1137 */ 1138 function get_comment_id_fields() { 1139 global $id; 1140 1141 $replytoid = isset($_GET['replytocom']) ? (int) $_GET['replytocom'] : 0; 1142 $result = "<input type='hidden' name='comment_post_ID' value='$id' id='comment_post_ID' />\n"; 1143 $result .= "<input type='hidden' name='comment_parent' id='comment_parent' value='$replytoid' />\n"; 1144 return apply_filters('comment_id_fields', $result, $id, $replytoid); 1145 } 1146 1147 /** 1134 1148 * Output hidden input HTML for replying to comments. 1135 1149 * 1136 1150 * @since 2.7.0 1151 * @see get_comment_id_fields() Echoes result 1137 1152 */ 1138 1153 function comment_id_fields() { 1139 global $id; 1140 1141 $replytoid = isset($_GET['replytocom']) ? (int) $_GET['replytocom'] : 0; 1142 echo "<input type='hidden' name='comment_post_ID' value='$id' id='comment_post_ID' />\n"; 1143 echo "<input type='hidden' name='comment_parent' id='comment_parent' value='$replytoid' />\n"; 1154 echo get_comment_id_fields(); 1144 1155 } 1145 1156
Note: See TracChangeset
for help on using the changeset viewer.