From 90dea00070b06950173c85c5a7392531fd2c914c Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 19 Dec 2018 07:26:47 +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. Built from https://develop.svn.wordpress.org/trunk@44329 git-svn-id: http://core.svn.wordpress.org/trunk@44159 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index ec50703b33..a8bf034f49 100644 --- a/wp-includes/media.php +++ b/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. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 3006df6caa..ed9e0a91f9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44328'; +$wp_version = '5.1-alpha-44329'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.