Make WordPress Core


Ignore:
Timestamp:
08/18/2023 05:54:41 PM (14 months ago)
Author:
johnbillion
Message:

Media: Standardise documentation of the $crop parameter for various media functions and methods.

See #58833

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-image-editor-imagick.php

    r56271 r56416  
    321321     * @param int|null   $max_w Image width.
    322322     * @param int|null   $max_h Image height.
    323      * @param bool|array $crop
     323     * @param bool|array $crop   {
     324     *     Optional. Image cropping behavior. If false, the image will be scaled (default),
     325     *     If true, image will be cropped to the specified dimensions using center positions.
     326     *     If an array, the image will be cropped using the array to specify the crop location:
     327     *
     328     *     @type string $0 The x crop position. Accepts 'left' 'center', or 'right'.
     329     *     @type string $1 The y crop position. Accepts 'top', 'center', or 'bottom'.
     330     * }
    324331     * @return true|WP_Error
    325332     */
Note: See TracChangeset for help on using the changeset viewer.