Make WordPress Core


Ignore:
Timestamp:
11/14/2020 04:33:52 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Various docblock corrections and improvements.

See #50768

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r49539 r49597  
    4343 * @since 2.5.0
    4444 *
    45  * @global int   $content_width
     45 * @global int $content_width
    4646 *
    4747 * @param int          $width   Width of the image in pixels.
     
    10821082         * @since 2.8.0
    10831083         *
    1084          * @param array        $attr       Array of attribute values for the image markup, keyed by attribute name.
     1084         * @param string[]     $attr       Array of attribute values for the image markup, keyed by attribute name.
    10851085         *                                 See wp_get_attachment_image().
    10861086         * @param WP_Post      $attachment Image attachment post.
     
    11101110     *                                    an array of width and height values in pixels (in that order).
    11111111     * @param bool         $icon          Whether the image should be treated as an icon.
    1112      * @param array        $attr          Array of attribute values for the image markup, keyed by attribute name.
     1112     * @param string[]     $attr          Array of attribute values for the image markup, keyed by attribute name.
    11131113     *                                    See wp_get_attachment_image().
    11141114     */
     
    12381238 * @param array  $image_meta    The image meta data as returned by 'wp_get_attachment_metadata()'.
    12391239 * @param int    $attachment_id Optional. The image attachment ID. Default 0.
    1240  * @return string|bool          The 'srcset' attribute value. False on error or when only one source exists.
     1240 * @return string|false The 'srcset' attribute value. False on error or when only one source exists.
    12411241 */
    12421242function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attachment_id = 0 ) {
     
    14771477 * @param int          $attachment_id Optional. Image attachment ID. Either `$image_meta` or `$attachment_id`
    14781478 *                                    is needed when using the image size name as argument for `$size`. Default 0.
    1479  * @return string|bool A valid source size value for use in a 'sizes' attribute or false.
     1479 * @return string|false A valid source size value for use in a 'sizes' attribute or false.
    14801480 */
    14811481function wp_calculate_image_sizes( $size, $image_src = null, $image_meta = null, $attachment_id = 0 ) {
Note: See TracChangeset for help on using the changeset viewer.