[wp-trac] [WordPress Trac] #20446: Add comment form submit button class attribute

WordPress Trac noreply at wordpress.org
Thu Mar 13 13:09:23 UTC 2014


#20446: Add comment form submit button class attribute
-----------------------------------------+------------------------------
 Reporter:  bainternet                   |       Owner:
     Type:  enhancement                  |      Status:  reopened
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Comments                     |     Version:  3.3.1
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+------------------------------

Comment (by spacedmonkey):

 Replying to [comment:8 SergeyBiryukov]:
 > Looking at the code, `.comment-form input[type="submit"]` should work
 for styling purposes:
 > [source:tags/3.8.1/src/wp-includes/comment-template.php#L2120]
 >
 > Why do you need a specific class for that button?

 There are lots of reasons why you might want classes on a submit button.
 In my case, I need it because twitter bootstrap needs a class on all of
 it's submit buttons to get the correct styling.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/20446#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list