WordPress.org

Make WordPress Core

Changeset 35065


Ignore:
Timestamp:
10/12/2015 04:41:54 PM (4 years ago)
Author:
DrewAPicture
Message:

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

    r35057 r35065  
    14401440     * @param string      $link_html The page link HTML output.
    14411441     * @param int         $id        Post ID.
    1442      * @param string      $size      Image size. Default 'thumbnail'.
     1442     * @param string|array $size     Size of the image. Image size or array of width and height values (in that order).
     1443     *                               Default 'thumbnail'.
    14431444     * @param bool        $permalink Whether to add permalink to image. Default false.
    14441445     * @param bool        $icon      Whether to include an icon. Default false.
Note: See TracChangeset for help on using the changeset viewer.