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:
Drew Jaynes 2018-12-19 07:25:21 +00:00
parent 0e057556d3
commit 97dcdf4a94

View File

@ -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.
*/