[wp-trac] [WordPress Trac] #15494: Unhelpful wp_get_attachment_url filter

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 19 16:55:22 UTC 2010


#15494: Unhelpful wp_get_attachment_url filter
--------------------------+-------------------------------------------------
 Reporter:  filosofo      |       Owner:  filosofo 
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.1      
Component:  Media         |     Version:  3.1      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
 `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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15494>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list