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

WordPress Trac noreply at wordpress.org
Wed Dec 30 18:54:12 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:  has-patch    |     Focuses:
-------------------------+------------------------------
Changes (by stevegrunwell):

 * keywords:  needs-refresh needs-unit-tests => has-patch


Comment:

 Just submitted a refresh for WordPress 4.4 and up. Rather than introducing
 a new filter (as was done earlier), I added support for the "attributes"
 key within the set of defaults passed to the `comment_form_defaults`
 filter. Original attributes (`action`, `method`, `id`, and `class`) are
 left unfiltered, so this new option is really for '''additional'''
 attributes that should be added to the `<form>` element.

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


More information about the wp-trac mailing list