WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 3 months ago

#26551 new defect (bug)

Remove title attributes: link-template.php

Reported by: joedolson Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Permalinks Keywords:
Focuses: accessibility Cc:

Description (last modified by SergeyBiryukov)

Related: #24766

// link-template.php
edit_term_link()
edit_post_link()
edit_comment_link()
edit_bookmark_link()
get_adjacent_post_rel_link()
the_shortlink()

Change History (3)

comment:1 SergeyBiryukov4 months ago

  • Description modified (diff)

comment:2 joedolson4 months ago

These have mostly been resolved. get_adjacent_post_rel_link() is a valid use of the title attribute (in a <link> element), most others have been removed.

The title attribute use in the_shortlink() is somewhat valid, since it does provide more information about the link. And, since the_shortlink() is used in themes, adding screen reader text is perhaps problematic, since we can't guarantee that styles are applied for that.

My feeling is that this is less than ideal, but I don't really have an alternate suggestion. Themes can implement this in a more accessible manner, according to their own methods by replacing the link text, since this is readily filterable. Probably should just be left as is, but I'm open to second opinions with another idea.

comment:3 nacin3 months ago

  • Component changed from Accessibility to Permalinks
  • Focuses accessibility added
Note: See TracTickets for help on using tickets.