WordPress.org

Make WordPress Core

Changeset 35050


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

Docs: Adjust documentation for the $size parameter in wp_get_attachment_link() to clarify the required order of width and height values when passing an array.

Also adds the array type to the parameter documentation (already supported).

Props jaspermdegroot.
See #34257.

File:
1 edited

Legend:

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

    r34950 r35050  
    14031403 *
    14041404 * @param int|WP_Post  $id        Optional. Post ID or post object.
    1405  * @param string       $size      Optional, default is 'thumbnail'. Size of image, either array or string.
     1405 * @param string|array $size      Optional. Image size. Accepts any valid image size, or an array
     1406 *                                of width and height values in pixels (in that order).
     1407 *                                Default 'thumbnail'.
    14061408 * @param bool         $permalink Optional, default is false. Whether to add permalink to image.
    14071409 * @param bool         $icon      Optional, default is false. Whether to include icon.
Note: See TracChangeset for help on using the changeset viewer.