mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 08:33:35 +01:00
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
This commit is contained in:
parent
6db985862a
commit
8749c5fa18
@ -1407,8 +1407,8 @@ function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) {
|
|||||||
* @since 4.4.0
|
* @since 4.4.0
|
||||||
*
|
*
|
||||||
* @param string|array $size Post thumbnail image size to display in the meta box. Accepts any valid
|
* @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
|
* image size, or an array of width and height values in pixels (in that order).
|
||||||
* 'post-thumbnail' size is set, default is 'post-thumbnail'. Otherwise,
|
* 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.
|
* default is an array with 266 as both the height and width values.
|
||||||
* @param int $thumbnail_id Post thumbnail attachment ID.
|
* @param int $thumbnail_id Post thumbnail attachment ID.
|
||||||
* @param WP_Post $post The post object associated with the thumbnail.
|
* @param WP_Post $post The post object associated with the thumbnail.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user