From 17086e05c5c7ec4bb3033d33b951ae6c66e5c681 Mon Sep 17 00:00:00 2001 From: Jeremy Lind Date: Wed, 18 Jan 2023 08:38:01 -0800 Subject: [PATCH] Fix units in function doc comment (#36353) * Fix units in function doc comment Typo in doc comments for available unit options. * Add changelog --- plugins/woocommerce/changelog/CHANGELOG.md | 4 ++++ plugins/woocommerce/includes/wc-formatting-functions.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 plugins/woocommerce/changelog/CHANGELOG.md diff --git a/plugins/woocommerce/changelog/CHANGELOG.md b/plugins/woocommerce/changelog/CHANGELOG.md new file mode 100644 index 00000000000..70b9206c4f4 --- /dev/null +++ b/plugins/woocommerce/changelog/CHANGELOG.md @@ -0,0 +1,4 @@ +Significance: minor +Type: tweak + +Fix units in function doc comment diff --git a/plugins/woocommerce/includes/wc-formatting-functions.php b/plugins/woocommerce/includes/wc-formatting-functions.php index e5e34e33a6b..9f05e82c76f 100644 --- a/plugins/woocommerce/includes/wc-formatting-functions.php +++ b/plugins/woocommerce/includes/wc-formatting-functions.php @@ -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 = '' ) {