[wp-trac] [WordPress Trac] #62835: Remove title attributes from author link functions

WordPress Trac noreply at wordpress.org
Tue Jan 21 14:38:40 UTC 2025


#62835: Remove title attributes from author link functions
---------------------------+-----------------------------
 Reporter:  sabernhardt    |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Users          |    Version:
 Severity:  normal         |   Keywords:  title-attribute
  Focuses:  accessibility  |
---------------------------+-----------------------------
 Related: #24766 and #26559

 #26559 retained some title attributes because the "Posts by //author//"
 and "Visit //author//'s website" tooltips still had a //small// additional
 value for anyone who could access them. (The important information was
 already in the visible link text.)

 Discussion on #24766 started to reconsider either removing the `title`
 attributes or changing them.

 @audrasjb:
 > Shouldn't we just replace the `title` attribute with `aria-label`?

 @joedolson:
 > This should also consider a text order change. For screen reader users,
 the unique information should go first: 'website: author', 'posts:
 author'; but for voice command, the visible information should go first:
 'author: website', 'author: posts'.

 @alh0319 suggested removing the attributes in a
 [https://docs.google.com/spreadsheets/d/1CZfxsbPVS3K2bNSdNRQPNQbe3Z3wkVDx0cpgQP8JrOo/edit?usp=sharing
 spreadsheet], and @adnanlimdi had made a patch like that.

 More than 70
 [https://docs.google.com/spreadsheets/d/1WvjDo8lpxSCHz7GwCFE8R4BUBpdEl8bLdL97mBU1gMk/edit?usp=sharing
 themes in the directory] use at least two of the three functions. The
 output might require some distinction between the author's website link
 (`get_the_author_link()`) and the author's post archives page
 (`get_the_author_posts_link()` and `wp_list_authors()`).

 Alternatively, functions could add a parameter that defaults to the
 current `title` but allows removing it.

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


More information about the wp-trac mailing list