WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#15494 closed defect (bug) (fixed)

Unhelpful wp_get_attachment_url filter

Reported by: filosofo Owned by: filosofo
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.1
Component: Media Keywords: has-patch
Focuses: Cc:

Description

wp_get_attachment_url() returns false if it can't find a URL for that attachment, before the filter gets applied.

Obviously this isn't helpful for someone who's trying to address a missing URL via the filter.

There's no backwards-compatibility issue in the patch because it changes behavior only for those who are handling an empty URL via the filter.

Attachments (1)

fix-unimaginative-attachment-url-filter.15494.diff (673 bytes) - added by filosofo 9 years ago.

Download all attachments as: .zip

Change History (2)

#1 @ryan
9 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [16768]) Apply wp_get_attachment_url to empty urls. Props filosofo. fixes #15494

Note: See TracTickets for help on using tickets.