From 8749c5fa18cd9d62d522b6f44a8b54e1a14da239 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 16:21:57 +0000 Subject: [PATCH] Docs: Adjust documentation for the `$size` parameter in the `admin_post_thumbnail_size` hook doc to clarify the required order of width and height values when an array is passed. See #34257. See #28512. git-svn-id: https://develop.svn.wordpress.org/trunk@35060 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index 1755509ca0..d2480d189a 100644 --- a/src/wp-admin/includes/post.php +++ b/src/wp-admin/includes/post.php @@ -1407,8 +1407,8 @@ function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) { * @since 4.4.0 * * @param string|array $size Post thumbnail image size to display in the meta box. Accepts any valid - * image size, or an array of height and width values in pixels. If the - * 'post-thumbnail' size is set, default is 'post-thumbnail'. Otherwise, + * image size, or an array of width and height values in pixels (in that order). + * If the 'post-thumbnail' size is set, default is 'post-thumbnail'. Otherwise, * default is an array with 266 as both the height and width values. * @param int $thumbnail_id Post thumbnail attachment ID. * @param WP_Post $post The post object associated with the thumbnail.