- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r17071 r17812 1163 1163 * @return string Hidden input HTML for replying to comments 1164 1164 */ 1165 function get_comment_id_fields() { 1166 $id = get_the_ID(); 1165 function get_comment_id_fields( $id = 0 ) { 1166 if ( empty( $id ) ) 1167 $id = get_the_ID(); 1167 1168 1168 1169 $replytoid = isset($_GET['replytocom']) ? (int) $_GET['replytocom'] : 0; … … 1178 1179 * @see get_comment_id_fields() Echoes result 1179 1180 */ 1180 function comment_id_fields( ) {1181 echo get_comment_id_fields( );1181 function comment_id_fields( $id = 0 ) { 1182 echo get_comment_id_fields( $id ); 1182 1183 } 1183 1184 … … 1574 1575 <p class="form-submit"> 1575 1576 <input name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" /> 1576 <?php comment_id_fields( ); ?>1577 <?php comment_id_fields( $post_id ); ?> 1577 1578 </p> 1578 1579 <?php do_action( 'comment_form', $post_id ); ?>
Note: See TracChangeset
for help on using the changeset viewer.