Make WordPress Core

Changeset 35044


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

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

    r35043 r35044  
    823823 *
    824824 * @param int          $attachment_id Image attachment ID.
    825  * @param string|array $size          Optional. Registered image size to retrieve the source for or a flat
    826  *                                    array of height and width dimensions. Default 'thumbnail'.
     825 * @param string|array $size          Optional. Image size to retrieve. Accepts any valid image size, or an array
     826 *                                    of width and height values in pixels (in that order). Default 'thumbnail'.
    827827 * @param bool         $icon          Optional. Whether the image should be treated as an icon. Default false.
    828828 * @return string|false Attachment URL or false if no image is available.
Note: See TracChangeset for help on using the changeset viewer.