From 69a3c2d8d70b9fb8c205668ec30c91412ef272a9 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 15:56:24 +0000 Subject: [PATCH] Docs: Adjust documentation for the `$size` parameter in `wp_get_attachment_link()` to clarify the required order of width and height values when passing an array. Also adds the `array` type to the parameter documentation (already supported). Props jaspermdegroot. See #34257. Built from https://develop.svn.wordpress.org/trunk@35050 git-svn-id: http://core.svn.wordpress.org/trunk@35015 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 3b491a1ace..e4a52ebcb9 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1402,7 +1402,9 @@ function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $ * @since 4.4.0 The `$id` parameter can now accept either a post ID or `WP_Post` object. * * @param int|WP_Post $id Optional. Post ID or post object. - * @param string $size Optional, default is 'thumbnail'. Size of image, either array or string. + * @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 'thumbnail'. * @param bool $permalink Optional, default is false. Whether to add permalink to image. * @param bool $icon Optional, default is false. Whether to include icon. * @param string|bool $text Optional, default is false. If string, then will be link text. diff --git a/wp-includes/version.php b/wp-includes/version.php index 7f8d43507e..7f836725ac 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35049'; +$wp_version = '4.4-alpha-35050'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.