[wp-trac] [WordPress Trac] #46124: Allow setting custom image alt text in custom header image

WordPress Trac noreply at wordpress.org
Mon Nov 15 22:28:00 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 joedolson):

 OK. In `get_attachment_fields_to_edit` it's about ensuring that the value
 is a string, I think; but this patch isn't doing that. This patch will use
 it as long as it's any non-empty value; which would include non-string
 values. This looks like it would assign the alt attribute as an empty
 array if that's what the function returned.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46124#comment:51>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list