From 4869de2a1c7ee33fc78a48c712552ba78c2e6b74 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 24 Aug 2020 22:10:25 +0000 Subject: [PATCH] Docs: Add a `@since` note about the `$srcset` and `$sizes` attributes added to `wp_get_attachment_image()`. Follow-up to [34855]. See #51122. git-svn-id: https://develop.svn.wordpress.org/trunk@48853 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 0128c9d2d7..8837bc40b8 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -1002,6 +1002,7 @@ function wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon * browser scale down the image. * * @since 2.5.0 + * @since 4.4.0 The `$srcset` and `$sizes` attributes were added. * @since 5.5.0 The `$loading` attribute was added. * * @param int $attachment_id Image attachment ID.