[wp-trac] [WordPress Trac] #42057: Add ability to pass a label for the <form> element returned by get_search_form()
WordPress Trac
noreply at wordpress.org
Sun Oct 1 19:33:31 UTC 2017
#42057: Add ability to pass a label for the <form> element returned by
get_search_form()
---------------------------+------------------------------
Reporter: williampatton | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.8.2
Severity: normal | Resolution:
Keywords: | Focuses: accessibility
---------------------------+------------------------------
Comment (by williampatton):
The `searchform.php` template is added with an `include` meaning that the
$args array available in the get_search_form() local scope will also be
available in the searchform.php file :)
It may be better for me to move the aria-label generation portion of my
additions take place before the include so that the label is available to
use in those files without need of possible redundant post-processing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42057#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list