Make WordPress Core

Changeset 35042


Ignore:
Timestamp:
10/12/2015 03:35:17 PM (10 years ago)
Author:
DrewAPicture
Message:

Docs: Adjust documentation for the $size parameter in wp_get_attachment_image() 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

    r35041 r35042  
    756756 *
    757757 * @param int          $attachment_id Image attachment ID.
    758  * @param string|array $size          Optional. Registered image size or flat array of height and width
    759  *                                    dimensions. Default 'thumbnail'.
     758 * @param string|array $size          Optional. Image size. Accepts any valid image size, or an array of width
     759 *                                    and height values in pixels (in that order). Default 'thumbnail'.
    760760 * @param bool         $icon          Optional. Whether the image should be treated as an icon. Default false.
    761761 * @param string|array $attr          Optional. Attributes for the image markup. Default empty.
Note: See TracChangeset for help on using the changeset viewer.