[wp-trac] [WordPress Trac] #57199: Bundled themes: Remove title attributes

WordPress Trac noreply at wordpress.org
Thu Nov 24 17:55:59 UTC 2022


#57199: Bundled themes: Remove title attributes
---------------------------+--------------------
 Reporter:  sabernhardt    |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  6.2
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  accessibility  |
---------------------------+--------------------
 Related: #24766 and #24203

 Searching bundled themes for `title=` returned 59 results.

 Redundant (13):
 - "Skip to content" in Twenty Ten, Twenty Twelve and Twenty Thirteen (not
 Twenty Eleven since r27569)
 - Site name in Twenty Ten (header and footer), Twenty Twelve and Twenty
 Thirteen
 - Author name in the H1 heading of the author.php template in the four
 themes from Twenty Ten to Twenty Thirteen
 - Date and time in the comment timestamp links of Twenty Nineteen and
 Twenty Twenty

 Empty link with title attribute:
 - Twenty Eleven's Showcase template has empty links to each featured post
 slide with "Featuring: [post title]" as a title attribute. The attribute
 can stay if it's silenced, but the links need accessible text.


 Other title attributes to consider removing:

 ||= title text =||= link/element text =||= locations =||
 || "Go to [parent post title]" || [parent post title] ||
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/image.php?rev=54685#L35 Twenty Eleven image
 template],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwelve/image.php?rev=54685#L31 Twenty Twelve image
 template],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentythirteen/image.php?rev=54685#L30 Twenty Thirteen
 image template] ||
 || "Go to [parent post title]" || "← [parent post title]" ||
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/loop-attachment.php?rev=54685#L29 Twenty Ten
 loop-attachment.php, line 29] ||
 || [attachment post title] || [image's alternative text] ||
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/loop-attachment.php?rev=54685#L123 Twenty Ten
 loop-attachment.php, line
 123],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/image.php?rev=54685#L93 Twenty Eleven
 image.php, line 93],\\[https://core.trac.wordpress.org/browser/trunk/src
 /wp-content/themes/twentytwelve/image.php?rev=54685#L93 Twenty Twelve
 image.php, line 93],\\[https://core.trac.wordpress.org/browser/trunk/src
 /wp-content/themes/twentythirteen/functions.php?rev=54685#L652 Twenty
 Thirteen functions.php, line 652] ||
 || [attachment post title] || [non-image filename slug] ||
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/loop-attachment.php?rev=54685#L151 Twenty Ten
 loop-attachment.php, line 151] ||
 || "Link to full-size image" || [image dimensions] ||
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/loop-attachment.php?rev=54685#L74 Twenty Ten
 loop-attachment.php, line
 74],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/image.php?rev=54685#L35 Twenty Eleven
 image.php, line 35],\\[https://core.trac.wordpress.org/browser/trunk/src
 /wp-content/themes/twentytwelve/image.php?rev=54685#L31 Twenty Twelve
 image.php, line 31] ||
 || "Link to full-size image" || "Full resolution ([width] × [height])" ||
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentythirteen/image.php?rev=54685#L48 Twenty Thirteen
 image.php, line 48] ||
 || "View Galleries" || "More Galleries" ||
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/loop.php?rev=54685#L107 Twenty Ten Gallery type
 archive link] ||
 || "View posts in the Gallery category" || "More Galleries" ||
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/loop.php?rev=54685#L110 Twenty Ten Gallery
 category archive link] ||
 || "Permalink to [post title]" || "[number of] image(s)" ||
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/loop.php?rev=54685#L92 Twenty Ten loop.php, line
 92] ||
 || "Permalink to [post title]" || "[number of] photo(s)" ||
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/content-gallery.php?rev=54685#L52 Twenty
 Eleven content-gallery.php, line 52] ||
 || "Permalink to [post title]" || [alternative text for featured image of
 post] || [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/showcase.php?rev=54685#L131 Twenty Eleven
 showcase template] ||
 || "Permalink to [post title]" || "permalink" || Twenty Ten functions.php
 ([https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/functions.php?rev=54685#L637 line 637],
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/functions.php?rev=54685#L640 line 640] and
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/functions.php?rev=54685#L643 line 643]);\\Twenty
 Eleven [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/content-featured.php?rev=54685#L39 content-
 featured line 39] and [https://core.trac.wordpress.org/browser/trunk/src
 /wp-content/themes/twentyeleven/content-featured.php?rev=54685#L42 line
 42];\\Twenty Eleven [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/content-single.php?rev=54685#L42 content-
 single line 42], [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/content-single.php?rev=54685#L45 line 45] and
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/content-single.php?rev=54685#L48 line 48] ||
 || "Permalink to [post title]" || [date] || Twenty Twelve's
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwelve/content-aside.php?rev=54685#L23 content-
 aside], [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwelve/content-link.php?rev=54685#L21 content-link],
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwelve/content-quote.php?rev=54685#L20 content-quote]
 and [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwelve/content-status.php?rev=54685#L18 content-
 status] templates;\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentythirteen/functions.php?rev=54685#L577 Twenty Thirteen
 functions.php] ||
 || "Semantic Personal Publishing Platform" || "Proudly powered by
 WordPress" || [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/footer.php?rev=54685#L46 Twenty Ten
 footer],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/footer.php?rev=54685#L34 Twenty Eleven
 footer],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwelve/footer.php?rev=54685#L21 Twenty Twelve footer]
 ||
 || [time] || [date] || Links in functions
 files:\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/functions.php?rev=54685#L609 Twenty Ten (line
 609)],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/functions.php?rev=54685#L801 Twenty Eleven
 (line 801)],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwelve/functions.php?rev=54685#L524 Twenty Twelve
 (line 524)];\\`abbr`
 elements:\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/loop-attachment.php?rev=54685#L62 Twenty Ten
 loop-attachment.php, line
 62],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/image.php?rev=54685#L35 Twenty Eleven
 image.php, line 35] ||
 || "View all posts by [author name]" || [author name] ||
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/functions.php?rev=54685#L615 Twenty Ten
 functions.php, line
 615],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyten/loop-attachment.php?rev=54685#L47 Twenty Ten
 loop-attachment.php, line
 47],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/content-image.php?rev=54685#L45 Twenty Eleven
 content-image.php, line
 45],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentyeleven/functions.php?rev=54685#L801 Twenty Eleven
 functions.php, line
 801],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentytwelve/functions.php?rev=54685#L532 Twenty Twelve
 functions.php, line
 532],\\[https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentythirteen/functions.php?rev=54685#L547 Twenty Thirteen
 functions.php, line 547] ||

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


More information about the wp-trac mailing list