WordPress.org

Make WordPress Core

Ticket #34733: 34733.1.diff

File 34733.1.diff, 1.8 KB (added by jaspermdegroot, 6 years ago)

Update see tags in responsive images functions DocBlocks

  • src/wp-includes/media.php

    diff --git src/wp-includes/media.php src/wp-includes/media.php
    index 887cc7e..ae5126f 100644
    function _wp_get_image_size_from_meta( $size_name, $image_meta ) { 
    932932 *
    933933 * @since 4.4.0
    934934 *
     935 * @see wp_calculate_image_srcset()
     936 *
    935937 * @param int          $attachment_id Image attachment ID.
    936938 * @param array|string $size          Optional. Image size. Accepts any valid image size, or an array of
    937939 *                                    width and height values in pixels (in that order). Default 'medium'.
    function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attac 
    11121114 *
    11131115 * @since 4.4.0
    11141116 *
     1117 * @see wp_calculate_image_sizes()
     1118 *
    11151119 * @param int          $attachment_id Image attachment ID.
    11161120 * @param array|string $size          Optional. Image size. Accepts any valid image size, or an array of width
    11171121 *                                    and height values in pixels (in that order). Default 'medium'.
    function wp_calculate_image_sizes( $size, $image_src = null, $image_meta = null, 
    11961200 *
    11971201 * @since 4.4.0
    11981202 *
    1199  * @see 'wp_image_add_srcset_and_sizes()'
     1203 * @see wp_image_add_srcset_and_sizes()
    12001204 *
    12011205 * @param string $content The raw post content to be filtered.
    12021206 * @return string Converted content with 'srcset' and 'sizes' attributes added to images.
    function wp_make_content_images_responsive( $content ) { 
    12431247 *
    12441248 * @since 4.4.0
    12451249 *
    1246  * @see 'wp_get_attachment_image_srcset()'
    1247  * @see 'wp_get_attachment_image_sizes()'
     1250 * @see wp_calculate_image_srcset()
     1251 * @see wp_calculate_image_sizes()
    12481252 *
    12491253 * @param string $image         An HTML 'img' element to be filtered.
    12501254 * @param array  $image_meta    The image meta data as returned by 'wp_get_attachment_metadata()'.