From 97dcdf4a94e92ce61ff8ca005b6b6ab04f5674c6 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 19 Dec 2018 07:25:21 +0000 Subject: [PATCH] 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 --- src/wp-includes/media.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index ec50703b33..a8bf034f49 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -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. */