From 0797823c554c532bb16d6a8ad15a4df56a724c5a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 2 Oct 2014 01:44:15 +0000 Subject: [PATCH] Add a class attribute for submit button in comment form. props bainternet. fixes #20446. Built from https://develop.svn.wordpress.org/trunk@29809 git-svn-id: http://core.svn.wordpress.org/trunk@29575 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 0d44376b2a..76a0ee0ff9 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -2054,6 +2054,7 @@ function wp_list_comments( $args = array(), $comments = null ) { * Default 'You may use these HTML tags and attributes ...'. * @type string $id_form The comment form element id attribute. Default 'commentform'. * @type string $id_submit The comment submit element id attribute. Default 'submit'. + * @type string $class_submit The comment submit element class attribute. Default 'submit'. * @type string $name_submit The comment submit element name attribute. Default 'submit'. * @type string $title_reply The translatable 'reply' button label. Default 'Leave a Reply'. * @type string $title_reply_to The translatable 'reply-to' button label. Default 'Leave a Reply to %s', @@ -2109,6 +2110,7 @@ function comment_form( $args = array(), $post_id = null ) { 'comment_notes_after' => '

' . sprintf( __( 'You may use these HTML tags and attributes: %s' ), ' ' . allowed_tags() . '' ) . '

', 'id_form' => 'commentform', 'id_submit' => 'submit', + 'class_submit' => 'submit', 'name_submit' => 'submit', 'title_reply' => __( 'Leave a Reply' ), 'title_reply_to' => __( 'Leave a Reply to %s' ), @@ -2230,7 +2232,7 @@ function comment_form( $args = array(), $post_id = null ) { ?>

- +