#26557 closed defect (bug) (fixed)
Remove title attributes: category-template.php
Reported by: | joedolson | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | has-patch, title-attribute |
Focuses: | accessibility, template | Cc: |
Description (last modified by )
Related: #24766
// category-template.php get_category_parents() get_the_category_list() wp_generate_tag_cloud() start_el()
Attachments (1)
Change History (10)
Note: See
TracTickets for help on using
tickets.
Most of these title attributes are nothing more than elaborations of the implied intent of the normal link text, e.g. "View all posts in 'category'". There are a couple of exceptions - one, in start_el(), using the category description as a title attribute, and the other in the wp_generate_tag_cloud(), which adds detail information including the number of posts in that tag to the title attribute.
While the title attribute may not be the optimal way of presenting the information, themes would be able to expose it via JS if needed, and it is adding value to the link text, so I've left them in this patch.