Make WordPress Core

Changeset 35047


Ignore:
Timestamp:
10/12/2015 03:47:50 PM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Adjust documentation for the $size parameter in previous_image_link() 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/media.php

    r35046 r35047  
    24072407 * @see adjacent_image_link()
    24082408 *
    2409  * @param string|array $size Optional. Registered image size or flat array of height and width dimensions.
    2410  *                           0 or 'none' will default to 'post_title' or `$text`. Default 'thumbnail'.
     2409 * @param string|array $size Optional. Image size. Accepts any valid image size, an array of width and
     2410 *                           height values in pixels (in that order), 0, or 'none'. 0 or 'none' will
     2411 *                           default to 'post_title' or `$text`. Default 'thumbnail'.
    24112412 * @param string       $text Optional. Link text. Default false.
    24122413 */
Note: See TracChangeset for help on using the changeset viewer.