Skip to content

Commit 4ee3d8c

Browse files
Docs: Add a @since note for wp_get_attachment_image_attributes filter.
This adds a note that `height` and `width` attributes are passed to the filter as of WordPress 6.8.2. Follow-up to [60415]. See #63166. git-svn-id: https://develop.svn.wordpress.org/trunk@60476 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 0723e8f commit 4ee3d8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wp-includes/media.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,6 +1158,7 @@ function wp_get_attachment_image( $attachment_id, $size = 'thumbnail', $icon = f
11581158
* Filters the list of attachment image attributes.
11591159
*
11601160
* @since 2.8.0
1161+
* @since 6.8.2 The `$attr` array includes `height` and `width` attributes.
11611162
*
11621163
* @param string[] $attr Array of attribute values for the image markup, keyed by attribute name.
11631164
* See wp_get_attachment_image().

0 commit comments

Comments
 (0)