Make WordPress Core


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

Docs: Adjust documentation for the $size parameter in the post_thumbnail_html hook doc to clarify the required order of width and height values when an array is passed.

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

See #34257.

File:
1 edited

Legend:

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

    r35071 r35072  
    171171     * @param int    $post_id           The post ID.
    172172     * @param string $post_thumbnail_id The post thumbnail ID.
    173      * @param string $size              The post thumbnail size.
     173     * @param string|array $size        The post thumbnail size. Image size or array of width and height
     174     *                                  values (in that order). Default 'post-thumbnail'.
    174175     * @param string $attr              Query string of attributes.
    175176     */
Note: See TracChangeset for help on using the changeset viewer.