From 987fe676a9a81364a07b34c677809d57d635f481 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 15:38:24 +0000 Subject: [PATCH] Docs: Adjust documentation for the `$size` parameter in the `wp_get_attachment_image_attributes` hook doc to clarify the required order of width and height values when an array is passed. See #34257. Built from https://develop.svn.wordpress.org/trunk@35043 git-svn-id: http://core.svn.wordpress.org/trunk@35008 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 9a502b98b2..19c6ffa38a 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -801,7 +801,8 @@ function wp_get_attachment_image($attachment_id, $size = 'thumbnail', $icon = fa * * @param array $attr Attributes for the image markup. * @param WP_Post $attachment Image attachment post. - * @param string|array $size Requested size. + * @param string|array $size Requested size. Image size or array of width and height values + * (in that order). Default 'thumbnail'. */ $attr = apply_filters( 'wp_get_attachment_image_attributes', $attr, $attachment, $size ); $attr = array_map( 'esc_attr', $attr ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 956ea049ae..d92d31bd98 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35042'; +$wp_version = '4.4-alpha-35043'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.