From a5a5200bcbf5e5621d7dccca597af6e4b8c9143c Mon Sep 17 00:00:00 2001 From: SergeyBiryukov Date: Fri, 20 Nov 2015 06:12:01 +0000 Subject: [PATCH] Docs: Add `@see` tags for `wp_get_attachment_image_srcset()` and `wp_get_attachment_image_sizes()`. Update `@see` tags for `wp_make_content_images_responsive()` and `wp_image_add_srcset_and_sizes()`. Props jaspermdegroot. See #34733. git-svn-id: https://develop.svn.wordpress.org/trunk@35715 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 887cc7efb2..ae5126f058 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -932,6 +932,8 @@ function _wp_get_image_size_from_meta( $size_name, $image_meta ) { * * @since 4.4.0 * + * @see wp_calculate_image_srcset() + * * @param int $attachment_id Image attachment ID. * @param array|string $size Optional. Image size. Accepts any valid image size, or an array of * width and height values in pixels (in that order). Default 'medium'. @@ -1112,6 +1114,8 @@ function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attac * * @since 4.4.0 * + * @see wp_calculate_image_sizes() + * * @param int $attachment_id Image attachment ID. * @param array|string $size Optional. Image size. Accepts any valid image size, or an array of width * and height values in pixels (in that order). Default 'medium'. @@ -1196,7 +1200,7 @@ function wp_calculate_image_sizes( $size, $image_src = null, $image_meta = null, * * @since 4.4.0 * - * @see 'wp_image_add_srcset_and_sizes()' + * @see wp_image_add_srcset_and_sizes() * * @param string $content The raw post content to be filtered. * @return string Converted content with 'srcset' and 'sizes' attributes added to images. @@ -1243,8 +1247,8 @@ function wp_make_content_images_responsive( $content ) { * * @since 4.4.0 * - * @see 'wp_get_attachment_image_srcset()' - * @see 'wp_get_attachment_image_sizes()' + * @see wp_calculate_image_srcset() + * @see wp_calculate_image_sizes() * * @param string $image An HTML 'img' element to be filtered. * @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'.