Fix units in function doc comment (#36353)

* Fix units in function doc comment

Typo in doc comments for available unit options.

* Add changelog
This commit is contained in:
Jeremy Lind 2023-01-18 08:38:01 -08:00 committed by GitHub
parent 78759685f1
commit 17086e05c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: tweak
Fix units in function doc comment

View File

@ -105,10 +105,10 @@ function wc_get_filename_from_url( $file_url ) {
*
* @param int|float $dimension Dimension.
* @param string $to_unit Unit to convert to.
* Options: 'in', 'm', 'cm', 'm'.
* Options: 'in', 'mm', 'cm', 'm'.
* @param string $from_unit Unit to convert from.
* Defaults to ''.
* Options: 'in', 'm', 'cm', 'm'.
* Options: 'in', 'mm', 'cm', 'm'.
* @return float
*/
function wc_get_dimension( $dimension, $to_unit, $from_unit = '' ) {