WordPress.org

Make WordPress Core

Ticket #42463: 42463.patch

File 42463.patch, 974 bytes (added by ketuchetan, 20 months ago)
  • src/wp-includes/media.php

     
    271271 * @param string     $name   Image size identifier.
    272272 * @param int        $width  Image width in pixels.
    273273 * @param int        $height Image height in pixels.
    274  * @param bool|array $crop   Optional. Whether to crop images to specified width and height or resize.
    275  *                           An array can specify positioning of the crop area. Default false.
     274 * @param bool|array $crop   Optional. If true, images will be crop without any adjustments
     275 *                           in dimensions. Otherwise try to adjust images dimensions
     276 *                           according specified width and height parameters before we crop it.
    276277 */
    277278function add_image_size( $name, $width = 0, $height = 0, $crop = false ) {
    278279        global $_wp_additional_image_sizes;