[wp-trac] [WordPress Trac] #46124: Allow setting custom image alt text in custom header image
WordPress Trac
noreply at wordpress.org
Sat Nov 13 20:05:12 UTC 2021
#46124: Allow setting custom image alt text in custom header image
-------------------------------------+----------------------------
Reporter: webmandesign | Owner: audrasjb
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 5.9
Component: Media | Version: 5.0.3
Severity: normal | Resolution:
Keywords: needs-testing has-patch | Focuses: accessibility
-------------------------------------+----------------------------
Comment (by sabernhardt):
OK, there is a precedent for checking empty `alt` and then assigning an
empty string in the [https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/media.php?rev=52059&marks=1474-1478#L1474
get_attachment_fields_to_edit function]. So `get_post_meta` might return
something other than either the user-defined text or an empty string (or,
at least, there was a concern when adding that code in r12055).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46124#comment:50>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list