Make WordPress Core

Ticket #34170: 34170.2.patch

File 34170.2.patch, 2.3 KB (added by flixos90, 10 years ago)

Added new argument to changelog

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

     
    20032003 * @since 3.0.0
    20042004 * @since 4.1.0 Introduced the 'class_submit' argument.
    20052005 * @since 4.2.0 Introduced 'submit_button' and 'submit_fields' arguments.
    2006  * @since 4.4.0 Introduced 'title_reply_before', 'title_reply_after',
     2006 * @since 4.4.0 Introduced 'class_form', 'title_reply_before', 'title_reply_after',
    20072007 *              'cancel_reply_before', and 'cancel_reply_after' arguments.
    20082008 *
    20092009 * @param array       $args {
     
    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.