Opened 8 months ago
Last modified 7 months ago
#22075 new enhancement
Improving `wp_get_attachment_link`
| Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.

post-template.php