WordPress.org

Make WordPress Core

Ticket #45203: #45203.1.diff

File #45203.1.diff, 831 bytes (added by andrewza, 3 years ago)

Updated doc block further to include what the variables default to.

  • wp-includes/media.php

    diff --git a/wp-includes/media.php b/wp-includes/media.php
    index ec50703b33..a8bf034f49 100644
    a b function image_downsize( $id, $size = 'medium' ) { 
    266266 * @global array $_wp_additional_image_sizes Associative array of additional image sizes.
    267267 *
    268268 * @param string     $name   Image size identifier.
    269  * @param int        $width  Image width in pixels.
    270  * @param int        $height Image height in pixels.
     269 * @param int        $width  Optional. Image width in pixels. Default 0.
     270 * @param int        $height Optional. Image height in pixels. Default 0.
    271271 * @param bool|array $crop   Optional. Whether to crop images to specified width and height or resize.
    272272 *                           An array can specify positioning of the crop area. Default false.
    273273 */