Make WordPress Core

Ticket #62389: 62389.diff

File 62389.diff, 1.4 KB (added by geekofshire, 23 months ago)

Attached a patch updating the comments of add_image_size()

  • media.php

     
    284284 * @param int        $width  Optional. Image width in pixels. Default 0.
    285285 * @param int        $height Optional. Image height in pixels. Default 0.
    286286 * @param bool|array $crop   {
    287  *     Optional. Image cropping behavior. If false, the image will be scaled (default).
    288  *     If true, image will be cropped to the specified dimensions using center positions.
     287 *     Optional. Image cropping behavior. Determines how the image is resized to fit the specified dimensions.
     288 *
     289 *     If false, the image will be scaled proportionally to fit within the specified dimensions.
     290 *     Only one dimension (width or height) is guaranteed to match the specified value, while the other dimension
     291 *     will be adjusted to maintain the original aspect ratio.
     292 *
     293 *     If true, the image will be cropped to exactly match the specified dimensions. Both the width and height
     294 *     will be guaranteed to match the specified values, with parts of the image being trimmed if necessary.
     295 *     The cropping will use center positions by default.
     296 *
    289297 *     If an array, the image will be cropped using the array to specify the crop location:
    290298 *
    291299 *     @type string $0 The x crop position. Accepts 'left', 'center', or 'right'.