[wp-trac] [WordPress Trac] #20358: Filter image_hwstring()

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 4 21:33:58 UTC 2012


#20358: Filter image_hwstring()
--------------------------+------------------------------
 Reporter:  wpsmith       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by nacin):

 I think image_hwstring() is too low level for this, as it is but a helper.

 Instead, we should push 'height' and 'width' into the attributes in
 wp_get_attachment_image(), which will force them through the
 wp_get_attachment_image_attributes filter. There is a duplicate ticket
 covering thid.

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


More information about the wp-trac mailing list