Make WordPress Core

Ticket #34170: 34170.patch

File 34170.patch, 1.9 KB (added by flixos90, 10 years ago)

Patch to address the issue (includes docs)

  • src/wp-includes/comment-template.php

     
    20242024 *     @type string $comment_notes_after  HTML element for a message displayed after the comment form.
    20252025 *     @type string $id_form              The comment form element id attribute. Default 'commentform'.
    20262026 *     @type string $id_submit            The comment submit element id attribute. Default 'submit'.
     2027 *     @type string $class_form           The comment form element class attribute. Default 'comment-form'.
    20272028 *     @type string $class_submit         The comment submit element class attribute. Default 'submit'.
    20282029 *     @type string $name_submit          The comment submit element name attribute. Default 'submit'.
    20292030 *     @type string $title_reply          The translatable 'reply' button label. Default 'Leave a Reply'.
     
    20922093                'comment_notes_after'  => '',
    20932094                'id_form'              => 'commentform',
    20942095                'id_submit'            => 'submit',
     2096                'class_form'           => 'comment-form',
    20952097                'class_submit'         => 'submit',
    20962098                'name_submit'          => 'submit',
    20972099                'title_reply'          => __( 'Leave a Reply' ),
     
    21532155                                 */
    21542156                                do_action( 'comment_form_must_log_in_after' );
    21552157                        else : ?>
    2156                                 <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' : ''; ?>>
     2158                                <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' : ''; ?>>
    21572159                                        <?php
    21582160                                        /**
    21592161                                         * Fires at the top of the comment form, inside the form tag.