Commit ed7f75fdafa for woocommerce
commit ed7f75fdafae9e2eea16f65e26d436ea4a0f43da
Author: Darren Ethier <darren@roughsmootheng.in>
Date: Thu May 14 14:57:23 2026 -0400
Fix assorted typos (#64950)
Combined work from #64878 and #64908
Co-authored-by: Asim Sulehria <de.asimhabib@gmail.com>
diff --git a/plugins/woocommerce/changelog/fix-consolidated-typos b/plugins/woocommerce/changelog/fix-consolidated-typos
new file mode 100644
index 00000000000..85346669fde
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-consolidated-typos
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Fix typos in comments and docblocks.
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/coming-soon/edit.tsx b/plugins/woocommerce/client/blocks/assets/js/blocks/coming-soon/edit.tsx
index 0040f557dbf..81090cd5ebf 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/coming-soon/edit.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/coming-soon/edit.tsx
@@ -25,8 +25,8 @@ export default function Edit( { attributes, setAttributes }: EditProps ) {
const { color, storeOnly } = attributes;
const blockProps = { ...useBlockProps() };
- // Existance of storeOnly attribute means it doesn't have a background color,
- // absense of custom color attribute means it's post-v1 template,
+ // Existence of storeOnly attribute means it doesn't have a background color,
+ // absence of custom color attribute means it's post-v1 template,
// in both cases, no need to show the color picker.
if ( storeOnly || ! color ) {
return (
diff --git a/plugins/woocommerce/src/StoreApi/Schemas/V1/CartShippingRateSchema.php b/plugins/woocommerce/src/StoreApi/Schemas/V1/CartShippingRateSchema.php
index 27ff1426136..4cc300707d9 100644
--- a/plugins/woocommerce/src/StoreApi/Schemas/V1/CartShippingRateSchema.php
+++ b/plugins/woocommerce/src/StoreApi/Schemas/V1/CartShippingRateSchema.php
@@ -238,7 +238,7 @@ class CartShippingRateSchema extends AbstractSchema {
* @return object
*/
protected function prepare_package_destination_response( $package ) {
- // If address_1 fails check address for back compatability.
+ // If address_1 fails check address for back compatibility.
$address = isset( $package['destination']['address_1'] ) ? $package['destination']['address_1'] : $package['destination']['address'];
return (object) $this->prepare_html_response(
[
diff --git a/plugins/woocommerce/src/StoreApi/Utilities/ProductItemTrait.php b/plugins/woocommerce/src/StoreApi/Utilities/ProductItemTrait.php
index da60dbba4c2..dab46a59793 100644
--- a/plugins/woocommerce/src/StoreApi/Utilities/ProductItemTrait.php
+++ b/plugins/woocommerce/src/StoreApi/Utilities/ProductItemTrait.php
@@ -4,7 +4,7 @@ namespace Automattic\WooCommerce\StoreApi\Utilities;
/**
* ProductItemTrait
*
- * Shared functionality for formating product item data.
+ * Shared functionality for formatting product item data.
*/
trait ProductItemTrait {
/**
diff --git a/plugins/woocommerce/tests/php/src/Internal/Admin/RemoteFreeExtensions/EvaluateOverridesTest.php b/plugins/woocommerce/tests/php/src/Internal/Admin/RemoteFreeExtensions/EvaluateOverridesTest.php
index 7bee7a08a07..5fb285743a9 100644
--- a/plugins/woocommerce/tests/php/src/Internal/Admin/RemoteFreeExtensions/EvaluateOverridesTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/Admin/RemoteFreeExtensions/EvaluateOverridesTest.php
@@ -69,7 +69,7 @@ class EvaluateOverridesTest extends WC_Unit_Test_Case {
$extensions = $this->get_extensions();
$result = $evaluator->evaluate( array( $extensions[3] ) );
- // Evaluation should pass and return the overriden value.
+ // Evaluation should pass and return the overridden value.
$this->assertEquals( 2, $result[0]->order );
// Reset the default country.
diff --git a/tools/monorepo-utils/src/ci-jobs/lib/package-file.ts b/tools/monorepo-utils/src/ci-jobs/lib/package-file.ts
index a7e068b3b35..c2b2e55dc42 100644
--- a/tools/monorepo-utils/src/ci-jobs/lib/package-file.ts
+++ b/tools/monorepo-utils/src/ci-jobs/lib/package-file.ts
@@ -23,7 +23,7 @@ const packageCache: { [ key: string ]: PackageJSON } = {};
* @return {Object} The package file's contents.
*/
export function loadPackage( packagePath: string ): PackageJSON {
- // Use normalized paths to accomodate any path tokens.
+ // Use normalized paths to accommodate any path tokens.
packagePath = path.normalize( packagePath );
if ( packageCache[ packagePath ] ) {
return packageCache[ packagePath ];