[wp-trac] [WordPress Trac] #20205: Add the ability to filter wp_get_attachment_image()

WordPress Trac noreply at wordpress.org
Tue Feb 19 18:31:46 UTC 2013


#20205: Add the ability to filter wp_get_attachment_image()
------------------------------------+------------------
 Reporter:  helgatheviking          |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  3.6
Component:  Media                   |     Version:  3.4
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------

Comment (by markoheijnen):

 The problem with that is that people will break stuff faster. I was
 thinking if we can make if safer and easier. They can pass the url and
 then call getimagesize() on it so you can retrieve the width/height.

 I also not sure if we should apply the filter on the result of
 image_downsize().

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20205#comment:31>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list