Make WordPress Core

Ticket #26841: 26841.2.diff

File 26841.2.diff, 1.2 KB (added by cliffseal, 10 years ago)
  • wp-includes/comment-template.php

    diff --git wp-includes/comment-template.php wp-includes/comment-template.php
    index ad5b9ca..c472b76 100644
    function comment_form( $args = array(), $post_id = null ) { 
    21872187                'submit_button'        => '<input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" />',
    21882188                'submit_field'         => '<p class="form-submit">%1$s %2$s</p>',
    21892189                'format'               => 'xhtml',
     2190                'action'               => site_url( '/wp-comments-post.php' )
    21902191        );
    21912192
    21922193        /**
    function comment_form( $args = array(), $post_id = null ) { 
    22352236                                 */
    22362237                                do_action( 'comment_form_must_log_in_after' );
    22372238                        else : ?>
    2238                                 <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="<?php echo esc_attr( $args['class_form'] ); ?>"<?php echo $html5 ? ' novalidate' : ''; ?>>
     2239                                <form action="<?php echo esc_url( $args['action'] ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="<?php echo esc_attr( $args['class_form'] ); ?>"<?php echo $html5 ? ' novalidate' : ''; ?>>
    22392240                                        <?php
    22402241                                        /**
    22412242                                         * Fires at the top of the comment form, inside the form tag.