[wp-trac] [WordPress Trac] #30144: Twenty Fourteen: Add aria-hidden to reduce verbosity on archive pages

WordPress Trac noreply at wordpress.org
Thu Nov 13 20:19:52 UTC 2014


#30144: Twenty Fourteen: Add aria-hidden to reduce verbosity on archive pages
-----------------------------------------+----------------------------
 Reporter:  joedolson                    |       Owner:
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  4.1
Component:  Bundled Theme                |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:  accessibility
-----------------------------------------+----------------------------

Comment (by hiwhatsup):

 {{{
 the_post_thumbnail( 'post-thumbnail', array( 'alt'=>get_the_title() ) );
 }}}

 The parameter {{{post-thumbnail}}} seems redundant as {{{post-thumbnail}}}
 is the default value for size parameter of function
 {{{the_post_thumbnail()}}}.   And second defined parameter overrides the
 default value for image {{{alt}}} of  {{{ 'alt'   => trim( strip_tags(
 $wp_postmeta->_wp_attachment_image_alt ) ) }}}.

 Is there a reason for returning the post title in place of the image alt
 value for the image {{{alt}}}?

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


More information about the wp-trac mailing list