From ad628c716582ce0993d9d211d573f5510ffcbcfb Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 16:42:23 +0000 Subject: [PATCH] Docs: Adjust documentation for the `$size` parameter in the `wp_get_attachment_link` hook doc to clarify the required order of width and height values when an array is passed. Also adds the `array` type to the parameter documentation (already supported). See #34257. Built from https://develop.svn.wordpress.org/trunk@35065 git-svn-id: http://core.svn.wordpress.org/trunk@35030 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 66517b1c91..59e4a50370 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1439,7 +1439,8 @@ function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = fals * * @param string $link_html The page link HTML output. * @param int $id Post ID. - * @param string $size Image size. Default 'thumbnail'. + * @param string|array $size Size of the image. Image size or array of width and height values (in that order). + * Default 'thumbnail'. * @param bool $permalink Whether to add permalink to image. Default false. * @param bool $icon Whether to include an icon. Default false. * @param string|bool $text If string, will be link text. Default false. diff --git a/wp-includes/version.php b/wp-includes/version.php index 0fa784ddcd..4a2fc1b1e5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35064'; +$wp_version = '4.4-alpha-35065'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.