[wp-trac] [WordPress Trac] #30909: Allow passing ID for comment_form container and title
WordPress Trac
noreply at wordpress.org
Thu Jan 8 18:50:32 UTC 2015
#30909: Allow passing ID for comment_form container and title
--------------------------+------------------------------
Reporter: rmccue | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by Shelob9):
* keywords: => has-patch
Comment:
I am attaching a path that adds an argument to comment_form() for the
hardcoded h3 ID. It also introduces a new function, for the hardcoded
`#respond` ID. The new function returns a filter that can be used to
change the value of that ID, sanitizes it and ensures it has a hash, or
not, depending on context. That way it can be used for targeting the
element in JavaScript, and outputted in HTML.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30909#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list