Make WordPress Core


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

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.

File:
1 edited

Legend:

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

    r35040 r35041  
    738738     * @param array|false  $image         Either array with src, width & height, icon src, or false.
    739739     * @param int          $attachment_id Image attachment ID.
    740      * @param string|array $size          Registered image size to retrieve the source for or a flat
    741      *                                    array of height and width dimensions. Default 'thumbnail'.
     740     * @param string|array $size          Size of image. Image size or array of width and height values
     741     *                                    (in that order). Default 'thumbnail'.
    742742     * @param bool         $icon          Whether the image should be treated as an icon. Default false.
    743743     */
Note: See TracChangeset for help on using the changeset viewer.