From 2091ff358d63b997c9b22b59848eba71c34a75bb Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 16:47:25 +0000 Subject: [PATCH] Docs: Adjust documentation for the `$size` parameter in `get_the_post_thumbnail()` to clarify the required order of width and height values when passing an array. See #34257. Built from https://develop.svn.wordpress.org/trunk@35068 git-svn-id: http://core.svn.wordpress.org/trunk@35033 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-thumbnail-template.php | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-includes/post-thumbnail-template.php b/wp-includes/post-thumbnail-template.php index 8cd7041270..bfaec74d8a 100644 --- a/wp-includes/post-thumbnail-template.php +++ b/wp-includes/post-thumbnail-template.php @@ -105,8 +105,9 @@ function update_post_thumbnail_cache( $wp_query = null ) { * @since 4.4.0 `$post` can be a post ID or WP_Post object. * * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. - * @param string|array $size Optional. Registered image size to use, or flat array of height - * and width values. Default 'post-thumbnail'. + * @param string|array $size Optional. Image size to use. Accepts any valid image size, or + * an array of width and height values in pixels (in that order). + * Default 'post-thumbnail'. * @param string|array $attr Optional. Query string or array of attributes. Default empty. * @return string The post thumbnail image tag. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index de6870eecf..b80d903791 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35067'; +$wp_version = '4.4-alpha-35068'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.