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

WordPress Trac noreply at wordpress.org
Tue Apr 29 21:29:40 UTC 2025


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

Comment (by adamsilverstein):

 @spacedmonkey Apologies for closing, I was mistaken and thought the width
 and height were already included. I double checked and you are right, they
 aren't currently included.

 The PR looks good, except there is one failing test - can you take a look?
 We Probably shouldn't output the width/height at all if the values are
 empty.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/14110#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list