[wp-trac] [WordPress Trac] #46124: Allow setting custom image alt text in custom header image
WordPress Trac
noreply at wordpress.org
Fri Nov 12 19:34:14 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):
Notes about the conditional statement in [attachment:"46124.3.patch"]:
1. It needs to check whether the header object has an `attachment_id` to
avoid errors when using a theme's suggested headers.
2. I don't remember why the second condition was important. It might be a
remnant from another iteration, involving the site name as a fallback.
Unless that condition is clearly unnecessary with the empty alt attribute
fallback, though, I recommend keeping it (in case I stumbled upon an error
I can't find again).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46124#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list