[wp-trac] [WordPress Trac] #14110: Expose height and width attributes to 'wp_get_attachment_image_attributes' filter

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 8 00:23:42 UTC 2012


#14110: Expose height and width attributes to 'wp_get_attachment_image_attributes'
filter
-----------------------------------+-----------------------------
 Reporter:  divinenephron          |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Future Release
Component:  Media                  |     Version:  3.0
 Severity:  minor                  |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+-----------------------------

Comment (by Sam_a):

 +1. When I added the `wp_get_attachment_image_attributes` hook (#8732), I
 omitted the height and width attributes because
 `wp_get_attachment_image()` had used `image_hwstring()` to format those.
 But it really doesn't make any sense that they're left out.

 I think `image_hwstring()` is called only by
 `wp_get_attachment_image_attributes()`.

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


More information about the wp-trac mailing list