Opened 9 years ago
Closed 8 years ago
#40155 closed enhancement (fixed)
Pass $attr through to wp_get_attachment_link filter
| Reported by: | danielbachhuber | Owned by: | joemcgill |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.1 |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | has-patch reporter-feedback |
| Cc: | Focuses: |
Description
The $attr variable is useful context for knowing where wp_get_attachment_link() is being called and, subsequently, how the value should be filtered.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@danielbachhuber – Assuming this enhancement still helpful, the patch looks good to me.