Opened 8 months ago

Last modified 7 months ago

#22075 new enhancement

Improving `wp_get_attachment_link`

Reported by: webord Owned by:
Priority: normal Milestone: Awaiting Review
Component: Media Version: 3.4
Severity: normal Keywords: has-patch dev-feedback
Cc:

Description

I answered a question not so long ago on WordPress StackExchange.

There I saw the need on a filter for wp_get_attachment_link() to allow the developer to add or remove attributes to the HTML without having to use a regex on it or creating the a tag again.

So I've done this small patch with changes to apply this enhancement to the function.

Attachments (1)

22075.diff (2.2 KB) - added by webord 8 months ago.
post-template.php

Download all attachments as: .zip

Change History (2)

webord8 months ago

post-template.php

  • Version changed from trunk to 3.4
Note: See TracTickets for help on using tickets.