mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
Media: Standardise the description for image size parameters.
This brings continuity to all the image related functions and filters which accept or pass a size parameter. Props dilipbheda, johnbillion Fixes #47364 git-svn-id: https://develop.svn.wordpress.org/trunk@49021 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1536,15 +1536,12 @@ function _wp_post_thumbnail_html( $thumbnail_id = null, $post = null ) {
|
||||
*
|
||||
* Note: When a theme adds 'post-thumbnail' support, a special 'post-thumbnail'
|
||||
* image size is registered, which differs from the 'thumbnail' image size
|
||||
* managed via the Settings > Media screen. See the `$size` parameter description
|
||||
* for more information on default values.
|
||||
* managed via the Settings > Media screen.
|
||||
*
|
||||
* @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 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 string|int[] $size Requested image size. Can be any registered image size name, or
|
||||
* an array of width and height values in pixels (in that order).
|
||||
* @param int $thumbnail_id Post thumbnail attachment ID.
|
||||
* @param WP_Post $post The post object associated with the thumbnail.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user