Make WordPress Core

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)

40155.1.diff (937 bytes ) - added by danielbachhuber 9 years ago.

Download all attachments as: .zip

Change History (4)

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


8 years ago

#2 @joemcgill
8 years ago

  • Keywords reporter-feedback added
  • Milestone Awaiting Review5.1
  • Owner set to joemcgill
  • Status newaccepted

@danielbachhuber – Assuming this enhancement still helpful, the patch looks good to me.

#3 @pento
8 years ago

  • Resolutionfixed
  • Status acceptedclosed

In 44471:

Media: Add $attr to the wp_get_attachment_link filter.

Props danielbachhuber.
Fixes #40155.

Note: See TracTickets for help on using tickets.