mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Docs: Ensure the optional $width and $height parameters are documented as such with defaults in the add_image_size() DocBlock.
Props andrewza. Fixes #45203. git-svn-id: https://develop.svn.wordpress.org/trunk@44329 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0e057556d3
commit
97dcdf4a94
@ -266,8 +266,8 @@ function image_downsize( $id, $size = 'medium' ) {
|
||||
* @global array $_wp_additional_image_sizes Associative array of additional image sizes.
|
||||
*
|
||||
* @param string $name Image size identifier.
|
||||
* @param int $width Image width in pixels.
|
||||
* @param int $height Image height in pixels.
|
||||
* @param int $width Optional. Image width in pixels. Default 0.
|
||||
* @param int $height Optional. Image height in pixels. Default 0.
|
||||
* @param bool|array $crop Optional. Whether to crop images to specified width and height or resize.
|
||||
* An array can specify positioning of the crop area. Default false.
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user