Ticket #24064: 24064.patch
File 24064.patch, 1.9 KB (added by , 12 years ago) |
---|
-
wp-includes/comment-template.php
1635 1635 'cancel_reply_link' => __( 'Cancel reply' ), 1636 1636 'label_submit' => __( 'Post Comment' ), 1637 1637 'format' => 'xhtml', 1638 'comment_field_first' => false, 1638 1639 ); 1639 1640 1640 1641 $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); … … 1650 1651 <?php else : ?> 1651 1652 <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>"<?php echo $html5 ? ' novalidate' : ''; ?>> 1652 1653 <?php do_action( 'comment_form_top' ); ?> 1654 <?php if ( $args['comment_field_first'] ) : ?> 1655 <?php echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); ?> 1656 <?php echo $args['comment_notes_after']; ?> 1657 <?php endif; ?> 1653 1658 <?php if ( is_user_logged_in() ) : ?> 1654 1659 <?php echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity ); ?> 1655 1660 <?php do_action( 'comment_form_logged_in_after', $commenter, $user_identity ); ?> … … 1663 1668 do_action( 'comment_form_after_fields' ); 1664 1669 ?> 1665 1670 <?php endif; ?> 1666 <?php echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); ?> 1667 <?php echo $args['comment_notes_after']; ?> 1671 <?php if ( !$args['comment_field_first'] ) : ?> 1672 <?php echo apply_filters( 'comment_form_field_comment', $args['comment_field'] ); ?> 1673 <?php echo $args['comment_notes_after']; ?> 1674 <?php endif; ?> 1668 1675 <p class="form-submit"> 1669 1676 <input name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" /> 1670 1677 <?php comment_id_fields( $post_id ); ?>