mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Docs: Adjust documentation for the $size
parameter in the wp_get_attachment_image_src
hook doc to clarify the required order of width and height values when an array is passed.
See #34257. Built from https://develop.svn.wordpress.org/trunk@35041 git-svn-id: http://core.svn.wordpress.org/trunk@35006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8f3f5dba35
commit
c02b132fcc
@ -737,8 +737,8 @@ function wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon
|
|||||||
*
|
*
|
||||||
* @param array|false $image Either array with src, width & height, icon src, or false.
|
* @param array|false $image Either array with src, width & height, icon src, or false.
|
||||||
* @param int $attachment_id Image attachment ID.
|
* @param int $attachment_id Image attachment ID.
|
||||||
* @param string|array $size Registered image size to retrieve the source for or a flat
|
* @param string|array $size Size of image. Image size or array of width and height values
|
||||||
* array of height and width dimensions. Default 'thumbnail'.
|
* (in that order). Default 'thumbnail'.
|
||||||
* @param bool $icon Whether the image should be treated as an icon. Default false.
|
* @param bool $icon Whether the image should be treated as an icon. Default false.
|
||||||
*/
|
*/
|
||||||
return apply_filters( 'wp_get_attachment_image_src', $image, $attachment_id, $size, $icon );
|
return apply_filters( 'wp_get_attachment_image_src', $image, $attachment_id, $size, $icon );
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-35040';
|
$wp_version = '4.4-alpha-35041';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
Block a user