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

WordPress Trac noreply at wordpress.org
Mon Jun 23 22:08:15 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:  6.8.2
Component:  Media                                |     Version:  3.0
 Severity:  minor                                |  Resolution:
 Keywords:  has-patch commit has-unit-tests      |     Focuses:
  has-test-info                                  |
-------------------------------------------------+-------------------------
Changes (by SirLouen):

 * keywords:  has-patch commit has-unit-tests => has-patch commit has-unit-
     tests has-test-info


Comment:

 Replying to [comment:47 sandeepdahiya]:
 > I created a short custom plugin to test the attributes passed to the
 filter. Just replace the image_id (in third last line) in the shortcode
 with the actual image id and add the shortcode to a post/page to check the
 results.
 👍

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


More information about the wp-trac mailing list