[wp-trac] [WordPress Trac] #39952: Category Dropdown Widget: required spacing issue on attachments template
WordPress Trac
noreply at wordpress.org
Wed Jul 9 05:20:19 UTC 2025
#39952: Category Dropdown Widget: required spacing issue on attachments template
-------------------------------+-------------------------
Reporter: tribalNerd | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Widgets | Version: 4.7.2
Severity: normal | Resolution: worksforme
Keywords: reporter-feedback | Focuses:
-------------------------------+-------------------------
Changes (by sabernhardt):
* status: new => closed
* resolution: => worksforme
* milestone: Awaiting Review =>
Comment:
I tried this again with Twenty Twenty-One, and the `select` element had
spaces between each attribute.
Without the `required` attribute:
`<select name='cat' id='cat' class='postform'>`
Adding `$args['required'] = true;` in the
`widget_categories_dropdown_args` filter:
`<select required name='cat' id='cat' class='postform'>`
Also, tickets such as #39045 and #43415 have removed `aria-required` when
the element has `required`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39952#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list