[wp-trac] [WordPress Trac] #53662: get_header_image_tag() should use alt text defined by users in media library and not generic get_bloginfo('name')

WordPress Trac noreply at wordpress.org
Wed Jul 14 20:09:18 UTC 2021


#53662: get_header_image_tag() should use alt text defined by users in media
library and not generic get_bloginfo('name')
---------------------------+-----------------------------
 Reporter:  RedBMedia      |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Media          |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  accessibility  |
---------------------------+-----------------------------
 Currently get_header_image_tag() creates alt text by simply calling
 get_bloginfo('name'). This doesn't seem to serve the purpose of alt text
 in many cases. Therefore alt text should be taken from the image's media
 library entry set by the user.

 Also allowing for this alt text to be called separately with an additional
 arg would help developers that are forced for create banner images with
 CSS but still want to provide the appropriate aria-label for the div.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53662>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list