#25739 closed defect (bug) (wontfix)
wp_get_attachment_link not adding the attachment title to the anchor tag
Reported by: | dennis_f | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.7 |
Component: | Media | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
I can see that the title attribute has been removed from the anchor tag when using the wp_get_attachment_link function - this was caused in [25570]
We display the titles of the attachments in a lightbox preview in some of our themes and now they are missing.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Title attributes are bad for accessibility - see the ticket that commit references, #24766. I would suggest filtering in a data attribute and using that, which would be more semantic, anyway.