Docs: Re-clarify the `$sizes[ $size ]` section of the hash notations for `WP_Image_Editor_GD::multi_resize()` and `WP_Image_Editor_Imagick::multi_resize()` as not fully-optional.
The `$width` value is optional if `$height` is specified, and vice versa. The `$crop` value is always optional and defaults to false. Props dh-shredder. See #32246. See [35061] and [35062]. Built from https://develop.svn.wordpress.org/trunk@35063 git-svn-id: http://core.svn.wordpress.org/trunk@35028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
041e3dd285
commit
b1b3fc5deb
|
@ -219,11 +219,11 @@ class WP_Image_Editor_GD extends WP_Image_Editor {
|
||||||
* maintain aspect ratio according to the provided dimension.
|
* maintain aspect ratio according to the provided dimension.
|
||||||
*
|
*
|
||||||
* @type array $size {
|
* @type array $size {
|
||||||
* Optional. Array of height, width values, and whether to crop.
|
* Array of height, width values, and whether to crop.
|
||||||
*
|
*
|
||||||
* @type int $width Image width.
|
* @type int $width Image width. Optional if `$height` is specified.
|
||||||
* @type int $height Image height.
|
* @type int $height Image height. Optional if `$width` is specified.
|
||||||
* @type bool $crop Whether to crop the image. Default false.
|
* @type bool $crop Optional. Whether to crop the image. Default false.
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @return array An array of resized images' metadata by size.
|
* @return array An array of resized images' metadata by size.
|
||||||
|
|
|
@ -277,11 +277,11 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||||
* maintain aspect ratio according to the provided dimension.
|
* maintain aspect ratio according to the provided dimension.
|
||||||
*
|
*
|
||||||
* @type array $size {
|
* @type array $size {
|
||||||
* Optional. Array of height, width values, and whether to crop.
|
* Array of height, width values, and whether to crop.
|
||||||
*
|
*
|
||||||
* @type int $width Image width.
|
* @type int $width Image width. Optional if `$height` is specified.
|
||||||
* @type int $height Image height.
|
* @type int $height Image height. Optional if `$width` is specified.
|
||||||
* @type bool $crop Whether to crop the image. Default false.
|
* @type bool $crop Optional. Whether to crop the image. Default false.
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* @return array An array of resized images' metadata by size.
|
* @return array An array of resized images' metadata by size.
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-35062';
|
$wp_version = '4.4-alpha-35063';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue