WordPress.org

Make WordPress Core

Changeset 29809


Ignore:
Timestamp:
10/02/2014 01:43:32 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Add a class attribute for submit button in comment form.

props bainternet.
fixes #20446.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-template.php

    r29293 r29809  
    20552055 *     @type string $id_form              The comment form element id attribute. Default 'commentform'.
    20562056 *     @type string $id_submit            The comment submit element id attribute. Default 'submit'.
     2057 *     @type string $class_submit         The comment submit element class attribute. Default 'submit'.
    20572058 *     @type string $name_submit          The comment submit element name attribute. Default 'submit'.
    20582059 *     @type string $title_reply          The translatable 'reply' button label. Default 'Leave a Reply'.
     
    21102111        'id_form'              => 'commentform',
    21112112        'id_submit'            => 'submit',
     2113        'class_submit'         => 'submit',
    21122114        'name_submit'          => 'submit',
    21132115        'title_reply'          => __( 'Leave a Reply' ),
     
    22312233                        <?php echo $args['comment_notes_after']; ?>
    22322234                        <p class="form-submit">
    2233                             <input name="<?php echo esc_attr( $args['name_submit'] ); ?>" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
     2235                            <input name="<?php echo esc_attr( $args['name_submit'] ); ?>" type="submit" id="<?php echo esc_attr( $args['id_submit'] ); ?>" class="<?php echo esc_attr( $args['class_submit'] ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
    22342236                            <?php comment_id_fields( $post_id ); ?>
    22352237                        </p>
Note: See TracChangeset for help on using the changeset viewer.