Make WordPress Core

Changeset 35033


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

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

    r34876 r35033  
    3232 * @param int          $width   Width of the image in pixels.
    3333 * @param int          $height  Height of the image in pixels.
    34  * @param string|array $size    Optional. Size or array of sizes of what the result image
    35  *                              should be. Accepts any valid image size name. Default 'medium'.
     34 * @param string|array $size    Optional. Image size. Accepts any valid image size, or an array
     35 *                              of width and height values in pixels (in that order).
     36 *                              Default 'medium'.
    3637 * @param string       $context Optional. Could be 'display' (like in a theme) or 'edit'
    3738 *                              (like inserting into an editor). Default null.
Note: See TracChangeset for help on using the changeset viewer.