Make WordPress Core

Changeset 35068


Ignore:
Timestamp:
10/12/2015 04:46:15 PM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Adjust documentation for the $size parameter in get_the_post_thumbnail() 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/post-thumbnail-template.php

    r35067 r35068  
    106106 *
    107107 * @param int|WP_Post  $post Optional. Post ID or WP_Post object.  Default is global `$post`.
    108  * @param string|array $size Optional. Registered image size to use, or flat array of height
    109  *                           and width values. Default 'post-thumbnail'.
     108 * @param string|array $size Optional. Image size to use. Accepts any valid image size, or
     109 *                           an array of width and height values in pixels (in that order).
     110 *                           Default 'post-thumbnail'.
    110111 * @param string|array $attr Optional. Query string or array of attributes. Default empty.
    111112 * @return string The post thumbnail image tag.
Note: See TracChangeset for help on using the changeset viewer.