Make WordPress Core

Ticket #26841: 26841.diff

File 26841.diff, 852 bytes (added by cliffseal, 12 years ago)

Adds filter for form action

  • wp-includes/comment-template.php

     
    20432043                                        do_action( 'comment_form_must_log_in_after' );
    20442044                                        ?>
    20452045                                <?php else : ?>
    2046                                         <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="comment-form"<?php echo $html5 ? ' novalidate' : ''; ?>>
     2046                                        <form action="<?php echo apply_filters( 'comment_form_action', site_url( '/wp-comments-post.php' ) ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="comment-form"<?php echo $html5 ? ' novalidate' : ''; ?>>
    20472047                                                <?php
    20482048                                                /**
    20492049                                                 * Fires at the top of the comment form, inside the <form> tag.