[wp-trac] [WordPress Trac] #54438: "Required fields are marked" shows up without required fields being present
WordPress Trac
noreply at wordpress.org
Sat Nov 13 20:32:13 UTC 2021
#54438: "Required fields are marked" shows up without required fields being present
-----------------------------------------+------------------------------
Reporter: webzunft | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 5.8.2
Severity: minor | Resolution:
Keywords: required-fields needs-patch | Focuses: ui
-----------------------------------------+------------------------------
Changes (by sabernhardt):
* keywords: => required-fields needs-patch
* component: General => Media
Comment:
Thanks for the report!
That code is in the [https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/media.php?rev=52059&marks=2043-2049#L2043
get_compat_media_markup function]. The `if ( $item )` condition is
necessary to determine whether to output the table tag (which lacks
`role="presentation"`), but another condition could be added inside that
one for the required field message.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54438#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list