From db4a87b0fd17baa99809fc3d09decf6a5d7b0a2c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 20 Nov 2015 06:13:26 +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. Built from https://develop.svn.wordpress.org/trunk@35715 git-svn-id: http://core.svn.wordpress.org/trunk@35679 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 10 +++++++--- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 887cc7efb2..ae5126f058 100644 --- a/wp-includes/media.php +++ b/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()'. diff --git a/wp-includes/version.php b/wp-includes/version.php index 267946701f..2cd8d2c9f4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta4-35714'; +$wp_version = '4.4-beta4-35715'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.