[wp-trac] [WordPress Trac] #15926: Add alt attribute support for Custom Header functionality

WordPress Trac noreply at wordpress.org
Mon Oct 6 19:39:44 UTC 2014


#15926: Add alt attribute support for Custom Header functionality
-------------------------------------------------+-------------------------
 Reporter:  jane                                 |       Owner:
     Type:  defect (bug)                         |  SergeyBiryukov
 Priority:  normal                               |      Status:  reopened
Component:  Customize                            |   Milestone:  4.1
 Severity:  minor                                |     Version:  3.0
 Keywords:  gci ux-feedback needs-testing        |  Resolution:
  needs-patch needs-refresh                      |     Focuses:
                                                 |  accessibility
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 I've reviewed the previous patches that add the UI for setting the alt
 attribute, and patching the bundled themes appeared to be the only
 feasible solution here.

 * As [attachment:15926.3.diff] shows, even if we add the UI to the Custom
 Header screen or the Customizer, it won't work out of the box if the theme
 does not support it, which would be confusing. We could probably add `alt`
 as a
 [http://codex.wordpress.org/Function_Reference/add_theme_support#Custom_Header
 new argument] for `add_theme_support( 'custom-header' )` though.
 * comment:34 suggests that only header images linked to the home page
 should have a non-empty alt text, and the site title seems to be the best
 option in that case. Is there a use case for a different alt text?

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


More information about the wp-trac mailing list