[wp-trac] [WordPress Trac] #20302: Allow comment_form() to add attributes to <form> tag

WordPress Trac noreply at wordpress.org
Sun Dec 13 22:18:00 UTC 2015


#20302: Allow comment_form() to add attributes to <form> tag
--------------------------------------------+------------------------------
 Reporter:  psbook                          |       Owner:
     Type:  enhancement                     |      Status:  new
 Priority:  normal                          |   Milestone:  Awaiting Review
Component:  Comments                        |     Version:  3.3.1
 Severity:  normal                          |  Resolution:
 Keywords:  needs-refresh needs-unit-tests  |     Focuses:
--------------------------------------------+------------------------------

Comment (by peterwilsoncc):

 Replying to [comment:6 swissspidy]:
 > Why is `onsubmit=""` needed for this? Can't that be done in a separate
 JS file or inline jS?

 For the use case described, yes using seperate JS would be optimal.

 For other attributes, class, aria, etc this would be handy. FWIW, the
 filtering techniques of allowing
 [https://github.com/WordPress/WordPress/blob/dc1e85a540b241020295f3733fd613f07da8f740
 /wp-includes/nav-menu-template.php#L129-L153 all attributes to be
 filtered] used for menu items appeals to me.

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


More information about the wp-trac mailing list