Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#25739 closed defect (bug) (wontfix)

wp_get_attachment_link not adding the attachment title to the anchor tag

Reported by: dennis_f's profile dennis_f Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.7
Component: Media Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

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)

#1 @helen
11 years ago

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.

#2 @helen
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

#3 @SergeyBiryukov
11 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.