From 9d5d27c26d99409765540ab0ae8e2776352f345e Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 15:39:25 +0000 Subject: [PATCH] Docs: Adjust documentation for the `$size` parameter in `wp_get_attachment_image_url()` to clarify the required order of width and height values when passing an array. See #34257. Built from https://develop.svn.wordpress.org/trunk@35044 git-svn-id: http://core.svn.wordpress.org/trunk@35009 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 19c6ffa38a..c8bb9167f6 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -822,8 +822,8 @@ function wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = fa * @since 4.4.0 * * @param int $attachment_id Image attachment ID. - * @param string|array $size Optional. Registered image size to retrieve the source for or a flat - * array of height and width dimensions. Default 'thumbnail'. + * @param string|array $size Optional. Image size to retrieve. Accepts any valid image size, or an array + * of width and height values in pixels (in that order). Default 'thumbnail'. * @param bool $icon Optional. Whether the image should be treated as an icon. Default false. * @return string|false Attachment URL or false if no image is available. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index d92d31bd98..697986e799 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35043'; +$wp_version = '4.4-alpha-35044'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.