Docs: Adjust documentation for the `$size` parameter in `image_constrain_size_for_editor()` to clarify the required order of width and height values when passing an array.
See #34257. Built from https://develop.svn.wordpress.org/trunk@35033 git-svn-id: http://core.svn.wordpress.org/trunk@34998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
499d1b74ba
commit
7c25ad0613
|
@ -31,8 +31,9 @@
|
|||
*
|
||||
* @param int $width Width of the image in pixels.
|
||||
* @param int $height Height of the image in pixels.
|
||||
* @param string|array $size Optional. Size or array of sizes of what the result image
|
||||
* should be. Accepts any valid image size name. Default 'medium'.
|
||||
* @param string|array $size Optional. Image size. Accepts any valid image size, or an array
|
||||
* of width and height values in pixels (in that order).
|
||||
* Default 'medium'.
|
||||
* @param string $context Optional. Could be 'display' (like in a theme) or 'edit'
|
||||
* (like inserting into an editor). Default null.
|
||||
* @return array Width and height of what the result image should resize to.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35032';
|
||||
$wp_version = '4.4-alpha-35033';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue