From bdfb2561107b3e1bc70edc9455b08131b69d3ee1 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 15:15:07 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@35033 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index e0ed8f4bd6..39bdd37b1e 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -31,8 +31,9 @@ * * @param int $width Width of the image in pixels. * @param int $height Height of the image in pixels. - * @param string|array $size Optional. Size or array of sizes of what the result image - * should be. Accepts any valid image size name. Default 'medium'. + * @param string|array $size Optional. Image size. Accepts any valid image size, or an array + * of width and height values in pixels (in that order). + * Default 'medium'. * @param string $context Optional. Could be 'display' (like in a theme) or 'edit' * (like inserting into an editor). Default null. * @return array Width and height of what the result image should resize to.