[wp-trac] [WordPress Trac] #31909: wp_dropdown_categories() select field cannot accept HTML 'required'
WordPress Trac
noreply at wordpress.org
Fri Aug 28 04:05:48 UTC 2015
#31909: wp_dropdown_categories() select field cannot accept HTML 'required'
------------------------------------+------------------------------
Reporter: wzislam | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.1.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: template
------------------------------------+------------------------------
Comment (by prionkor):
Replying to [comment:1 boonebgorges]:
> Are there attributes other than 'required' that one might reasonably
want to add to the `<select>` element? (Like maybe `'data-'` attributes of
some sort?) Maybe we could add a `select_atts` param, which would accept
an array of additional attributes:
>
Yes, so far its the best idea and I usually implement it this way. instead
of creating new key for `required` lets just have an `attr` key or
`attribute` key which accepts and array of key value pairs which later
because the select element attributes.
This idea can also be used on other select function throughout WP core.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31909#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list