Make WordPress Core

Ticket #62433: 62433.patch

File 62433.patch, 2.4 KB (added by truptikanzariya, 16 months ago)
  • src/wp-includes/media.php

    diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php
    index 1e3673e894..6e58658189 100644
    a b function image_downsize( $id, $size = 'medium' ) { 
    288288 *     If true, image will be cropped to the specified dimensions using center positions.
    289289 *     If an array, the image will be cropped using the array to specify the crop location:
    290290 *
    291  *     @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
     291 *     @type string $0 The x crop position. Accepts 'left', 'center', or 'right'.
    292292 *     @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
    293293 * }
    294294 */
    function remove_image_size( $name ) { 
    350350 *     If true, image will be cropped to the specified dimensions using center positions.
    351351 *     If an array, the image will be cropped using the array to specify the crop location:
    352352 *
    353  *     @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
     353 *     @type string $0 The x crop position. Accepts 'left', 'center', or 'right'.
    354354 *     @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
    355355 * }
    356356 */
    function wp_constrain_dimensions( $current_width, $current_height, $max_width = 
    530530 *     If true, image will be cropped to the specified dimensions using center positions.
    531531 *     If an array, the image will be cropped using the array to specify the crop location:
    532532 *
    533  *     @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
     533 *     @type string $0 The x crop position. Accepts 'left', 'center', or 'right'.
    534534 *     @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
    535535 * }
    536536 * @return array|false Returned array matches parameters for `imagecopyresampled()`. False on failure.
    function image_resize_dimensions( $orig_w, $orig_h, $dest_w, $dest_h, $crop = fa 
    684684 *     If true, image will be cropped to the specified dimensions using center positions.
    685685 *     If an array, the image will be cropped using the array to specify the crop location:
    686686 *
    687  *     @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
     687 *     @type string $0 The x crop position. Accepts 'left', 'center', or 'right'.
    688688 *     @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
    689689 * }
    690690 * @return array|false Metadata array on success. False if no image was created.