Docs: Adjust documentation for the `$size` parameter in `get_image_tag()` to clarify the required order of width and height values when passing an array.
See #34257. Built from https://develop.svn.wordpress.org/trunk@35036 git-svn-id: http://core.svn.wordpress.org/trunk@35001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3f8aaf753a
commit
71932de1f5
|
@ -315,8 +315,9 @@ function set_post_thumbnail_size( $width = 0, $height = 0, $crop = false ) {
|
|||
* @param string $alt Image Description for the alt attribute.
|
||||
* @param string $title Image Description for the title attribute.
|
||||
* @param string $align Part of the class name for aligning the image.
|
||||
* @param string|array $size Optional. Registered image size to retrieve a tag for, or flat array
|
||||
* of height and width values. Default 'medium'.
|
||||
* @param string|array $size Optional. Registered image size to retrieve a tag for. Accepts any
|
||||
* valid image size, or an array of width and height values in pixels
|
||||
* (in that order). Default 'medium'.
|
||||
* @return string HTML IMG element for given image attachment
|
||||
*/
|
||||
function get_image_tag( $id, $alt, $title, $align, $size = 'medium' ) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35035';
|
||||
$wp_version = '4.4-alpha-35036';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue