Make WordPress Core

Ticket #41009: 41009.diff

File 41009.diff, 2.1 KB (added by mayankmajeji, 6 years ago)

Comment respond class "class_repond" added to "comment-template.php" file.

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

     
    22502250 *     @type string $id_submit            The comment submit element id attribute. Default 'submit'.
    22512251 *     @type string $class_form           The comment form element class attribute. Default 'comment-form'.
    22522252 *     @type string $class_submit         The comment submit element class attribute. Default 'submit'.
     2253 *     @type string $class_respond         The comment submit element class attribute. Default 'comment-respond'.
    22532254 *     @type string $name_submit          The comment submit element name attribute. Default 'submit'.
    22542255 *     @type string $title_reply          The translatable 'reply' button label. Default 'Leave a Reply'.
    22552256 *     @type string $title_reply_to       The translatable 'reply-to' button label. Default 'Leave a Reply to %s',
     
    23782379         * @param string[] $fields Array of the default comment fields.
    23792380         */
    23802381        $fields = apply_filters( 'comment_form_default_fields', $fields );
    2381 
     2382       
    23822383        $defaults = array(
    23832384                'fields'               => $fields,
    23842385                'comment_field'        => sprintf(
     
    24252426                'id_submit'            => 'submit',
    24262427                'class_form'           => 'comment-form',
    24272428                'class_submit'         => 'submit',
     2429                'class_respond'        => 'comment-respond',
    24282430                'name_submit'          => 'submit',
    24292431                'title_reply'          => __( 'Leave a Reply' ),
    24302432                /* translators: %s: Author of the comment being replied to. */
     
    24692471         * @since 3.0.0
    24702472         */
    24712473        do_action( 'comment_form_before' );
    2472         ?>
    2473         <div id="respond" class="comment-respond">
    2474                 <?php
     2474        printf(
     2475                '<div id="respond" class="%s">',
     2476                esc_attr( $args['class_respond'] )
     2477        );
    24752478                echo $args['title_reply_before'];
    24762479
    24772480                comment_form_title( $args['title_reply'], $args['title_reply_to'] );
     
    26612664                        echo '</form>';
    26622665
    26632666                endif;
    2664                 ?>
    2665         </div><!-- #respond -->
     2667        echo '</div>';
     2668        ?>
     2669        <!-- #respond -->
    26662670        <?php
    26672671
    26682672        /**