Make WordPress Core

Ticket #42463: 42463.4.diff

File 42463.4.diff, 1.1 KB (added by killua99, 15 months ago)

According with the discussion on slack channel the wording wasn't accurate and the need of mention about the extended description on the summary could help to describe the $crop argument.

  • src/wp-includes/media.php

    diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
    index 40f8870d77..a4f321fb3a 100644
    a b function image_downsize( $id, $size = 'medium' ) { 
    267267 * @param string     $name   Image size identifier.
    268268 * @param int        $width  Optional. Image width in pixels. Default 0.
    269269 * @param int        $height Optional. Image height in pixels. Default 0.
    270  * @param bool|array $crop   Optional. Whether to crop images to specified width and height or resize.
    271  *                           An array can specify positioning of the crop area. Default false.
     270 * @param bool|array $crop   Optional. If true, images will be cropped without any adjustments
     271 *                           in dimensions. Otherwise try to adjust images dimensions
     272 *                           according specified width and height parameters before cropping it.
     273 *                           Extended description could be found in the function summary.
    272274 */
    273275function add_image_size( $name, $width = 0, $height = 0, $crop = false ) {
    274276        global $_wp_additional_image_sizes;