WordPress.org

Make WordPress Core

Changeset 35048


Ignore:
Timestamp:
10/12/2015 03:49:52 PM (5 years ago)
Author:
DrewAPicture
Message:

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

    r35047 r35048  
    24232423 * @see adjacent_image_link()
    24242424 *
    2425  * @param string|array $size Optional. Registered image size or flat array of height and width dimensions.
    2426  *                           0 or 'none' will default to 'post_title' or `$text`. Default 'thumbnail'.
     2425 * @param string|array $size Optional. Image size. Accepts any valid image size, an array of width and
     2426 *                           height values in pixels (in that order), 0, or 'none'. 0 or 'none' will
     2427 *                           default to 'post_title' or `$text`. Default 'thumbnail'.
    24272428 * @param string       $text Optional. Link text. Default false.
    24282429 */
    2429 function next_image_link($size = 'thumbnail', $text = false) {
     2430function next_image_link( $size = 'thumbnail', $text = false ) {
    24302431    adjacent_image_link(false, $size, $text);
    24312432}
Note: See TracChangeset for help on using the changeset viewer.