WordPress.org

Make WordPress Core

Changeset 35036


Ignore:
Timestamp:
10/12/2015 03:20:55 PM (5 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r35035 r35036  
    316316 * @param string       $title Image Description for the title attribute.
    317317 * @param string       $align Part of the class name for aligning the image.
    318  * @param string|array $size  Optional. Registered image size to retrieve a tag for, or flat array
    319  *                            of height and width values. Default 'medium'.
     318 * @param string|array $size  Optional. Registered image size to retrieve a tag for. Accepts any
     319 *                            valid image size, or an array of width and height values in pixels
     320 *                            (in that order). Default 'medium'.
    320321 * @return string HTML IMG element for given image attachment
    321322 */
Note: See TracChangeset for help on using the changeset viewer.