WordPress.org

Make WordPress Core

Changeset 35039


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

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

    r35038 r35039  
    605605 *
    606606 * @param int          $post_id Attachment ID.
    607  * @param array|string $size    Optional. Registered image size to retrieve or flat array of height
    608  *                              and width dimensions. Default 'thumbnail'.
     607 * @param array|string $size    Optional. Image size. Accepts any valid image size, or an array
     608 *                              of width and height values in pixels (in that order).
     609 *                              Default 'thumbnail'.
    609610 * @return false|array False on failure or array of file path, width, and height on success.
    610611 */
Note: See TracChangeset for help on using the changeset viewer.