WordPress.org

Make WordPress Core

Changeset 35076


Ignore:
Timestamp:
10/12/2015 04:59:48 PM (5 years ago)
Author:
DrewAPicture
Message:

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

Fixes #34257. Whew!

File:
1 edited

Legend:

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

    r35075 r35076  
    201201 * @since 4.4.0
    202202 *
    203  * @param string|array $size Optional. Registered image size to retrieve the source for or a flat
    204  *                           array of height and width dimensions. Default 'post-thumbnail'.
     203 * @param string|array $size Optional. Image size to use. Accepts any valid image size,
     204 *                           or an array of width and height values in pixels (in that order).
     205 *                           Default 'post-thumbnail'.
    205206 */
    206207function the_post_thumbnail_url( $size = 'post-thumbnail' ) {
Note: See TracChangeset for help on using the changeset viewer.