Make WordPress Core

Changeset 35067


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

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

    r34663 r35067  
    5454 * @see get_the_post_thumbnail()
    5555 *
    56  * @param string|array $size Optional. Registered image size to use, or flat array of height
    57  *                           and width values. Default 'post-thumbnail'.
     56 * @param string|array $size Optional. Image size to use. Accepts any valid image size, or
     57 *                           an array of width and height values in pixels (in that order).
     58 *                           Default 'post-thumbnail'.
    5859 * @param string|array $attr Optional. Query string or array of attributes. Default empty.
    5960 */
Note: See TracChangeset for help on using the changeset viewer.