Docs: Adjust documentation for the `$size` parameter in `wp_get_attachment_image_src()` to clarify the required order of width and height values when passing an array.
See #34257. Built from https://develop.svn.wordpress.org/trunk@35040 git-svn-id: http://core.svn.wordpress.org/trunk@35005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50fd2488f4
commit
8f3f5dba35
|
@ -707,8 +707,8 @@ function get_intermediate_image_sizes() {
|
||||||
* @since 2.5.0
|
* @since 2.5.0
|
||||||
*
|
*
|
||||||
* @param int $attachment_id Image attachment ID.
|
* @param int $attachment_id Image attachment ID.
|
||||||
* @param string|array $size Optional. Registered image size to retrieve the source for or a flat
|
* @param string|array $size Optional. Image size. Accepts any valid image size, or an array of width
|
||||||
* array of height and width dimensions. Default 'thumbnail'.
|
* and height values in pixels (in that order). Default 'thumbnail'.
|
||||||
* @param bool $icon Optional. Whether the image should be treated as an icon. Default false.
|
* @param bool $icon Optional. Whether the image should be treated as an icon. Default false.
|
||||||
* @return false|array Returns an array (url, width, height, is_intermediate), or false, if no image is available.
|
* @return false|array Returns an array (url, width, height, is_intermediate), or false, if no image is available.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-35039';
|
$wp_version = '4.4-alpha-35040';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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