Commit 0e7d786c548 for woocommerce
commit 0e7d786c5487f8a3c5c6c1f8d6a79401e5de3df2
Author: Viktor Szépe <viktor@szepe.net>
Date: Thu Sep 3 08:44:01 2026 +0200
Fix typos in 2026 (#67936)
* Fix typos in 2026
* Revert false positives
* Fix typo cleanup review feedback
* Fix code formatting
* Fix touched Markdown files
* Implement coderabbit's suggestions
* Revert two things
* Restore shipping_banner_dimiss in test to match reverted source
The source revert in ef88cbbceaf kept the original 'shipping_banner_dimiss'
tracking event name, but the test still expected the corrected spelling.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Knk64L7iZkcCAXuHWGaAag
---------
Co-authored-by: Ján Mikláš <neosinner@gmail.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
diff --git a/.cursor/rules/woo-phpunit.mdc b/.cursor/rules/woo-phpunit.mdc
index 24856647d3f..c71427dc5af 100644
--- a/.cursor/rules/woo-phpunit.mdc
+++ b/.cursor/rules/woo-phpunit.mdc
@@ -63,7 +63,7 @@ Ensure proper test file structure (the below is an example):
declare( strict_types = 1 );
/**
- * Test class description (this is an exmample)
+ * Test class description (this is an example)
*/
class WC_REST_Product_Brands_Controller_Test extends WC_Unit_Test_Case {
// test methods
diff --git a/.github/actions/setup-woocommerce-monorepo/action.yml b/.github/actions/setup-woocommerce-monorepo/action.yml
index 94ba095dd5d..2008b3f3524 100644
--- a/.github/actions/setup-woocommerce-monorepo/action.yml
+++ b/.github/actions/setup-woocommerce-monorepo/action.yml
@@ -95,7 +95,7 @@ runs:
# The installation command is a bit odd as it's a workaround for know bug - https://github.com/pnpm/pnpm/issues/6300.
run: |
if [[ '${{ inputs.install }}' == '@woocommerce/plugin-woocommerce...' && '${{ inputs.build-type }}' == 'backend' ]]; then
- # PHPUnit/REST testing optimized installation of the deps: minimalistic and parallellized between PHP/JS.
+ # PHPUnit/REST testing optimized installation of the deps: minimalistic and parallelized between PHP/JS.
# JS deps installation is abit hard-core, but all we need actually is wp-env and playwright - we are good at that regard.
composer install --working-dir=./plugins/woocommerce --quiet &
pnpm install --filter='@woocommerce/plugin-woocommerce' --frozen-lockfile
diff --git a/.github/workflows/cherry-pick-to-frozen.yml b/.github/workflows/cherry-pick-to-frozen.yml
index f4b9374229c..b4ab60aa1bb 100644
--- a/.github/workflows/cherry-pick-to-frozen.yml
+++ b/.github/workflows/cherry-pick-to-frozen.yml
@@ -125,7 +125,7 @@ jobs:
timeout-minutes: 5
steps:
- # We set the milestone of the new PR to the milestone of the source PR since they should all be merged in preperation for the same release.
+ # We set the milestone of the new PR to the milestone of the source PR since they should all be merged in preparation for the same release.
- name: Add milestone
if: github.event.pull_request.milestone.number != null
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
diff --git a/.github/workflows/scripts/post-request-shared.php b/.github/workflows/scripts/post-request-shared.php
index 8d4bc442147..d143aac7c8a 100644
--- a/.github/workflows/scripts/post-request-shared.php
+++ b/.github/workflows/scripts/post-request-shared.php
@@ -239,7 +239,7 @@ function do_github_api_post_request( $request_path, $body ) {
$full_request_url = rtrim( $github_api_url, '/' ) . '/' . ltrim( $request_path, '/' );
$result = @file_get_contents( $full_request_url, false, $context );
- // Verify that the post request was sucessful.
+ // Verify that the post request was successful.
$status_line = $http_response_header[0];
preg_match( "/^HTTPS?\/\d\.\d\s+(\d{3})\s+/i", $status_line, $matches );
$github_api_response_code = $matches[1];
diff --git a/docs/apis/rest-api/v1/products.mdx b/docs/apis/rest-api/v1/products.mdx
index 46fd1c0cd1c..e965bc46b16 100644
--- a/docs/apis/rest-api/v1/products.mdx
+++ b/docs/apis/rest-api/v1/products.mdx
@@ -25,7 +25,7 @@ The products API allows you to create, view, update, and delete individual, or a
| `description` | string | Product description. |
| `short_description` | string | Product short description. |
| `sku` | string | Unique identifier. |
-| `price` | string | Current product price. This is setted from `regular_price` and `sale_price`. `READ-ONLY` |
+| `price` | string | Current product price. This is set from `regular_price` and `sale_price`. `READ-ONLY` |
| `regular_price` | string | Product regular price. |
| `sale_price` | string | Product sale price. |
| `date_on_sale_from` | string | Start date of sale price. Date in the `YYYY-MM-DD` format. |
@@ -138,7 +138,7 @@ The products API allows you to create, view, update, and delete individual, or a
| `date_modified` | date-time | The date the variation was last modified, in the site's timezone. `READ-ONLY` |
| `permalink` | string | Variation URL. `READ-ONLY` |
| `sku` | string | Unique identifier. |
-| `price` | string | Current variation price. This is setted from `regular_price` and `sale_price`. `READ-ONLY` |
+| `price` | string | Current variation price. This is set from `regular_price` and `sale_price`. `READ-ONLY` |
| `regular_price` | string | Variation regular price. |
| `sale_price` | string | Variation sale price. |
| `date_on_sale_from` | string | Start date of sale price. Date in the `YYYY-MM-DD` format. |
diff --git a/docs/block-development/extensible-blocks/cart-and-checkout-blocks/checkout-payment-methods/payment-method-integration.md b/docs/block-development/extensible-blocks/cart-and-checkout-blocks/checkout-payment-methods/payment-method-integration.md
index e12778b88a1..d4d7e22efc4 100644
--- a/docs/block-development/extensible-blocks/cart-and-checkout-blocks/checkout-payment-methods/payment-method-integration.md
+++ b/docs/block-development/extensible-blocks/cart-and-checkout-blocks/checkout-payment-methods/payment-method-integration.md
@@ -46,7 +46,7 @@ The options you feed the configuration instance should be an object in this shap
const options = {
name: 'my_payment_method',
title: 'My Mayment Method',
- description: 'A setence or two about your payment method',
+ description: 'A sentence or two about your payment method',
gatewayId: 'gateway-id',
label: <ReactNode />,
content: <ReactNode />,
diff --git a/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/cart-line-items.md b/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/cart-line-items.md
index 1a099b0e73f..6ed681f9bae 100644
--- a/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/cart-line-items.md
+++ b/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/cart-line-items.md
@@ -574,7 +574,7 @@ The Cart Item object of the filters above has the following keys:
- _backorders_allowed_ `boolean` - Whether backorders are allowed.
- _catalog_visibility_ `string` - The catalog visibility.
-- _decsription_ `string` - The cart item description.
+- _description_ `string` - The cart item description.
- _extensions_ `object` (default: `{}`) - The extensions object.
- _id_ `number` - The item ID.
- _images_ `array` - The item images array.
diff --git a/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/checkout-and-place-order-button.md b/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/checkout-and-place-order-button.md
index b9c05349a03..8e22ef1069a 100644
--- a/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/checkout-and-place-order-button.md
+++ b/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/checkout-and-place-order-button.md
@@ -274,7 +274,7 @@ The Cart Item object of the filters above has the following keys:
- _backorders_allowed_ `boolean` - Whether backorders are allowed.
- _catalog_visibility_ `string` - The catalog visibility.
-- _decsription_ `string` - The cart item description.
+- _description_ `string` - The cart item description.
- _extensions_ `object` (default: `{}`) - The extensions object.
- _id_ `number` - The item ID.
- _images_ `array` - The item images array.
diff --git a/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/order-summary-items.md b/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/order-summary-items.md
index 9e85c6adc4b..2da450be68e 100644
--- a/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/order-summary-items.md
+++ b/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/order-summary-items.md
@@ -495,7 +495,7 @@ The Cart Item object of the filters above has the following keys:
- _backorders_allowed_ `boolean` - Whether backorders are allowed.
- _catalog_visibility_ `string` - The catalog visibility.
-- _decsription_ `string` - The cart item description.
+- _description_ `string` - The cart item description.
- _extensions_ `object` (default: `{}`) - The extensions object.
- _id_ `number` - The item ID.
- _images_ `array` - The item images array.
diff --git a/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/totals-footer-item.md b/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/totals-footer-item.md
index 693dbe8d930..e9edbd9d8f9 100644
--- a/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/totals-footer-item.md
+++ b/docs/block-development/extensible-blocks/cart-and-checkout-blocks/filters-in-cart-and-checkout/totals-footer-item.md
@@ -50,9 +50,9 @@ registerCheckoutFilters( 'example-extension', {
### Screenshots
-| Before | After |
-|:---------------------------------------------------------------------:|:---------------------------------------------------------------------:|
-| | |
+| Before | After |
+| :---: | :---: |
+|  |  |
## `totalValue`
@@ -95,9 +95,9 @@ registerCheckoutFilters( 'my-extension', {
### Screenshots
-| Before | After |
-|:---------------------------------------------------------------------:|:---------------------------------------------------------------------:|
-| | |
+| Before | After |
+| :---: | :---: |
+|  |  |
## Cart object
@@ -163,7 +163,7 @@ The Cart Item object of the filters above has the following keys:
- _backorders_allowed_ `boolean` - Whether backorders are allowed.
- _catalog_visibility_ `string` - The catalog visibility.
-- _decsription_ `string` - The cart item description.
+- _description_ `string` - The cart item description.
- _extensions_ `object` (default: `{}`) - The extensions object.
- _id_ `number` - The item ID.
- _images_ `array` - The item images array.
diff --git a/docs/woo-marketplace/billing-api-saas.mdx b/docs/woo-marketplace/billing-api-saas.mdx
index 490885fc8d8..98a11147f55 100644
--- a/docs/woo-marketplace/billing-api-saas.mdx
+++ b/docs/woo-marketplace/billing-api-saas.mdx
@@ -130,7 +130,7 @@ WooCommerce.com also makes a webhook call to your webhook URL with the saas_bill
## Free Trials
-Our billing system optionally supports free trials. Free trials help reduce the number of refunds and cancelations by allowing merchants to see if the service is a good fit for them before purchasing. You can specify the trial period during the subscription signup initiation phase. Pass the trial_period and trial_length parameters during the initial API call.
+Our billing system optionally supports free trials. Free trials help reduce the number of refunds and cancellations by allowing merchants to see if the service is a good fit for them before purchasing. You can specify the trial period during the subscription signup initiation phase. Pass the trial_period and trial_length parameters during the initial API call.
We automatically charge the subscription price when the trial period ends if the merchant didn't cancel the subscription. You will get a webhook call with the saas_billing_contract.renewed topic and the contract details. Please review the webhook section for more information.
@@ -244,7 +244,7 @@ If you approve a refund request for a SaaS billing order, the underlying SaaS co
WooCommerce.com also makes server-to-server calls to your webhook URL with the saas_billing_contract.refunded and saas_billing_contract.canceled topics. The webhook request body contains the contract object. Check out the webhook section for more details.
-## Subscription cancelations
+## Subscription cancellations
Merchants must be able to cancel a subscription from your application, so please make sure that feature is implemented. There is a dedicated endpoint in the HTTP API to cancel contracts. Please review our API documentation for the DELETE endpoints.
diff --git a/packages/js/admin-layout/package.json b/packages/js/admin-layout/package.json
index 540274eaac5..89c38faa0ac 100644
--- a/packages/js/admin-layout/package.json
+++ b/packages/js/admin-layout/package.json
@@ -1,7 +1,7 @@
{
"name": "@woocommerce/admin-layout",
"version": "2.0.0",
- "description": "WooCommerce admin layout copmonents and utilities.",
+ "description": "WooCommerce admin layout components and utilities.",
"author": "Automattic",
"license": "GPL-2.0-or-later",
"keywords": [
diff --git a/packages/js/components/src/timeline/timeline-group.js b/packages/js/components/src/timeline/timeline-group.js
index 40fdba09c7c..5cd3f0be3d9 100644
--- a/packages/js/components/src/timeline/timeline-group.js
+++ b/packages/js/components/src/timeline/timeline-group.js
@@ -19,7 +19,7 @@ const TimelineGroup = ( {
timezone,
} ) => {
const groupClassName = clsx( 'woocommerce-timeline-group', className );
- const itemsToTimlineItem = ( item, itemIndex ) => {
+ const itemsToTimelineItem = ( item, itemIndex ) => {
const itemKey = group.title + '-' + itemIndex;
return (
<TimelineItem
@@ -39,7 +39,7 @@ const TimelineGroup = ( {
<ul>
{ group.items
.sort( sortByDateUsing( orderBy ) )
- .map( itemsToTimlineItem ) }
+ .map( itemsToTimelineItem ) }
</ul>
<hr />
</li>
diff --git a/packages/js/create-woo-extension/README.md b/packages/js/create-woo-extension/README.md
index c3f89da7d22..a909d9e7289 100644
--- a/packages/js/create-woo-extension/README.md
+++ b/packages/js/create-woo-extension/README.md
@@ -22,7 +22,7 @@ npm run start # Watch the javascript for changes
# Local development with wp-env (optional)
npm -g i @wordpress/env # If you don't already have wp-env
-wp-env start # Start Wordpress environment
+wp-env start # Start WordPress environment
```
See the new plugin activated from the WordPress plugins page and navigate to `wp-admin/admin.php?page=wc-admin&path=%2Fmy-extension-name` to check it out.
diff --git a/packages/js/data/src/crud/utils.ts b/packages/js/data/src/crud/utils.ts
index 51b616d4b6e..4ca4f82cdd4 100644
--- a/packages/js/data/src/crud/utils.ts
+++ b/packages/js/data/src/crud/utils.ts
@@ -207,7 +207,7 @@ export const getUrlParameters = (
/**
* Check to see if an argument is a valid type of ID query.
*
- * @param arg Unknow argument to check.
+ * @param arg Unknown argument to check.
* @param namespace The namespace string
* @return boolean
*/
diff --git a/packages/js/data/src/reports/types.ts b/packages/js/data/src/reports/types.ts
index 0b36088e399..ee63458b1e3 100644
--- a/packages/js/data/src/reports/types.ts
+++ b/packages/js/data/src/reports/types.ts
@@ -386,7 +386,7 @@ type Interval = {
};
export type Segment = {
- /** Segment identificator. */
+ /** Segment identifier. */
segment_id: number;
/** Human readable segment label, either product or variation name. */
segment_label: 'day' | 'week' | 'month' | 'year';
diff --git a/packages/js/dependency-extraction-webpack-plugin/README.md b/packages/js/dependency-extraction-webpack-plugin/README.md
index 8aae2940b9b..8e7fa4f7745 100644
--- a/packages/js/dependency-extraction-webpack-plugin/README.md
+++ b/packages/js/dependency-extraction-webpack-plugin/README.md
@@ -1,6 +1,6 @@
# Dependency Extraction Webpack Plugin
-Extends Wordpress [Dependency Extraction Webpack Plugin](https://github.com/WordPress/gutenberg/tree/trunk/packages/dependency-extraction-webpack-plugin) to automatically include WooCommerce dependencies in addition to WordPress dependencies.
+Extends WordPress [Dependency Extraction Webpack Plugin](https://github.com/WordPress/gutenberg/tree/trunk/packages/dependency-extraction-webpack-plugin) to automatically include WooCommerce dependencies in addition to WordPress dependencies.
## Installation
@@ -40,16 +40,16 @@ const webpackConfig = {
};
```
-Additional module requests on top of Wordpress [Dependency Extraction Webpack Plugin](https://github.com/WordPress/gutenberg/tree/trunk/packages/dependency-extraction-webpack-plugin) are:
+Additional module requests on top of WordPress [Dependency Extraction Webpack Plugin](https://github.com/WordPress/gutenberg/tree/trunk/packages/dependency-extraction-webpack-plugin) are:
-| Request | Global | Script handle | Notes |
-| ------------------------------ | ------------------------ | ---------------------- | --------------------------------------------------------|
-| `@woocommerce/data` | `wc['data']` | `wc-store-data` | |
-| `@woocommerce/csv-export` | `wc['csvExport']` | `wc-csv` | |
-| `@woocommerce/blocks-registry` | `wc['wcBlocksRegistry']` | `wc-blocks-registry` | |
-| `@woocommerce/block-data` | `wc['wcBlocksData']` | `wc-blocks-data-store` | This dependency does not have an associated npm package |
-| `@woocommerce/settings` | `wc['wcSettings']` | `wc-settings` | |
-| `@woocommerce/*` | `wc['*']` | `wc-*` | |
+| Request | Global | Script handle | Notes |
+| --- | --- | --- | --- |
+| `@woocommerce/data` | `wc['data']` | `wc-store-data` | |
+| `@woocommerce/csv-export` | `wc['csvExport']` | `wc-csv` | |
+| `@woocommerce/blocks-registry` | `wc['wcBlocksRegistry']` | `wc-blocks-registry` | |
+| `@woocommerce/block-data` | `wc['wcBlocksData']` | `wc-blocks-data-store` | This dependency does not have an associated npm package |
+| `@woocommerce/settings` | `wc['wcSettings']` | `wc-settings` | |
+| `@woocommerce/*` | `wc['*']` | `wc-*` | |
### Options
diff --git a/packages/php/blueprint/tests/Unit/ExportSchemaTest.php b/packages/php/blueprint/tests/Unit/ExportSchemaTest.php
index f6b3473d36e..ab90b107ddb 100644
--- a/packages/php/blueprint/tests/Unit/ExportSchemaTest.php
+++ b/packages/php/blueprint/tests/Unit/ExportSchemaTest.php
@@ -87,7 +87,7 @@ class ExportSchemaTest extends TestCase {
*
* @return void
*/
- public function test_it_only_uses_exporters_specified_by_steps_argment() {
+ public function test_it_only_uses_exporters_specified_by_steps_argument() {
$mock = Mock(
ExportSchema::class,
array(
diff --git a/packages/php/email-editor/src/Engine/Renderer/ContentRenderer/class-content-renderer.php b/packages/php/email-editor/src/Engine/Renderer/ContentRenderer/class-content-renderer.php
index d1177f100d7..58945d540ca 100644
--- a/packages/php/email-editor/src/Engine/Renderer/ContentRenderer/class-content-renderer.php
+++ b/packages/php/email-editor/src/Engine/Renderer/ContentRenderer/class-content-renderer.php
@@ -660,7 +660,7 @@ class Content_Renderer {
* Layout CSS assumes the top level block will have a single DIV wrapper with children. Since our blocks use tables,
* we need to adjust this to look for children in the TD element. This may requires more advanced replacement but
* this works in the current version of Gutenberg.
- * Example rule we're targetting: .wp-container-core-group-is-layout-1.wp-container-core-group-is-layout-1 > *
+ * Example rule we're targeting: .wp-container-core-group-is-layout-1.wp-container-core-group-is-layout-1 > *
*/
$block_support_styles = preg_replace(
'/group-is-layout-(\d+) >/',
diff --git a/packages/php/email-editor/src/Engine/Renderer/template-canvas.php b/packages/php/email-editor/src/Engine/Renderer/template-canvas.php
index 6483920a395..5c763ceab56 100644
--- a/packages/php/email-editor/src/Engine/Renderer/template-canvas.php
+++ b/packages/php/email-editor/src/Engine/Renderer/template-canvas.php
@@ -10,7 +10,7 @@ declare(strict_types = 1);
// phpcs:disable Generic.Files.InlineHTML.Found
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
/**
- * Template file to render the current 'wp_template', specifcally for emails.
+ * Template file to render the current 'wp_template', specifically for emails.
*
* Variables passed to this template:
*
diff --git a/packages/php/email-editor/src/Engine/Templates/class-template.php b/packages/php/email-editor/src/Engine/Templates/class-template.php
index c330ae4d87f..742da05f634 100644
--- a/packages/php/email-editor/src/Engine/Templates/class-template.php
+++ b/packages/php/email-editor/src/Engine/Templates/class-template.php
@@ -50,7 +50,7 @@ class Template {
*/
private string $content;
/**
- * The list of supoorted post types.
+ * The list of supported post types.
*
* @var string[]
*/
diff --git a/packages/php/email-editor/tests/integration/Engine/Renderer/Renderer_Test.php b/packages/php/email-editor/tests/integration/Engine/Renderer/Renderer_Test.php
index f1db56e0683..4fec0971906 100644
--- a/packages/php/email-editor/tests/integration/Engine/Renderer/Renderer_Test.php
+++ b/packages/php/email-editor/tests/integration/Engine/Renderer/Renderer_Test.php
@@ -299,7 +299,7 @@ class Renderer_Test extends \Email_Editor_Integration_Test_Case {
}
/**
- * Test it renders post wrapped withing a template associated with the post via _wp_page_template post meta.
+ * Test it renders post wrapped within a template associated with the post via _wp_page_template post meta.
*/
public function testItRendersPostWithinAssociatedTemplate(): void {
// @phpstan-ignore-next-line PHPStan is not aware of the register_block_template function's side effects.
@@ -323,7 +323,7 @@ class Renderer_Test extends \Email_Editor_Integration_Test_Case {
}
/**
- * Test it renders post wrapped withing a template passed as parameter.
+ * Test it renders post wrapped within a template passed as parameter.
*/
public function testItRendersPostWithinTemplatePassedAsParameter(): void {
// @phpstan-ignore-next-line PHPStan is not aware of the register_block_template function's side effects.
diff --git a/packages/php/woocommerce-analytics/src/class-woo-analytics-trait.php b/packages/php/woocommerce-analytics/src/class-woo-analytics-trait.php
index 8d7173b6ee0..8af1c6e7c8b 100644
--- a/packages/php/woocommerce-analytics/src/class-woo-analytics-trait.php
+++ b/packages/php/woocommerce-analytics/src/class-woo-analytics-trait.php
@@ -343,7 +343,7 @@ trait Woo_Analytics_Trait {
}
/**
- * Gets product categories or varation attributes as a formatted concatenated string
+ * Gets product categories or variation attributes as a formatted concatenated string
*
* @param object $product WC_Product.
* @return string
diff --git a/packages/php/woocommerce-subscriptions-engine/src/Integration/Renewal/RenewalSelector.php b/packages/php/woocommerce-subscriptions-engine/src/Integration/Renewal/RenewalSelector.php
index 622ac738ff6..61191e80cf3 100644
--- a/packages/php/woocommerce-subscriptions-engine/src/Integration/Renewal/RenewalSelector.php
+++ b/packages/php/woocommerce-subscriptions-engine/src/Integration/Renewal/RenewalSelector.php
@@ -107,7 +107,7 @@ final class RenewalSelector {
/**
* Whether a period ending at `$ends_at_gmt` has ended by `$now` - the scheduled due-guard.
- * An unparseable end is treated as not ended (never charge ahead on bad data). Internal to
+ * An unparsable end is treated as not ended (never charge ahead on bad data). Internal to
* selection: `process()` bills whatever cycle it is handed and applies no due policy of its own.
*
* @param string $ends_at_gmt The head period end (GMT string).
diff --git a/plugins/woocommerce-beta-tester/EXTENDING-WC-ADMIN-HELPER.md b/plugins/woocommerce-beta-tester/EXTENDING-WC-ADMIN-HELPER.md
index 0060ed451e8..4e257adc717 100644
--- a/plugins/woocommerce-beta-tester/EXTENDING-WC-ADMIN-HELPER.md
+++ b/plugins/woocommerce-beta-tester/EXTENDING-WC-ADMIN-HELPER.md
@@ -1,11 +1,11 @@
-## Extending
+# Extending WC Admin helper
There are two client-side filters available if you want to extend the test
helper with your own plugin's test setup code.
This example adds a new tab:
-```
+```jsx
import { addFilter } from '@wordpress/hooks';
const SuperSekret = () => (
@@ -17,7 +17,7 @@ const SuperSekret = () => (
);
addFilter(
'woocommerce_admin_test_helper_tabs',
- 'wath',
+ 'watch',
( tabs ) => [
...tabs,
{
@@ -31,7 +31,7 @@ addFilter(
This example adds a new tool to the existing Options tab:
-```
+```jsx
import { addFilter } from '@wordpress/hooks';
const NewTool = () => (
@@ -43,7 +43,7 @@ const NewTool = () => (
);
addFilter(
'woocommerce_admin_test_helper_tab_options',
- 'wath',
+ 'watch',
( entries ) => [
...entries,
<NewTool/>
@@ -53,7 +53,7 @@ addFilter(
Register a REST API endpoint to perform server-side actions in the usual way:
-```
+```php
add_action( 'rest_api_init', function() {
register_rest_route(
'your-plugin/v1',
@@ -81,7 +81,7 @@ function your_plugin_area_action() {
This would be used on the client like this:
-```
+```js
import apiFetch from '@wordpress/api-fetch';
...
const response = await apiFetch( {
diff --git a/plugins/woocommerce-beta-tester/src/tools/commands/index.js b/plugins/woocommerce-beta-tester/src/tools/commands/index.js
index 38b65b513eb..11e5d68b535 100644
--- a/plugins/woocommerce-beta-tester/src/tools/commands/index.js
+++ b/plugins/woocommerce-beta-tester/src/tools/commands/index.js
@@ -22,7 +22,7 @@ import {
import {
UPDATE_WCCOM_REQUEST_ERRORS_MODE,
- SetWccomRequestErrros,
+ SetWccomRequestErrors,
} from './set-wccom-request-errors';
import {
SetWccomBaseUrl,
@@ -106,7 +106,7 @@ export default [
},
{
command: 'Force errors on woocommerce.com requests',
- description: <SetWccomRequestErrros />,
+ description: <SetWccomRequestErrors />,
action: UPDATE_WCCOM_REQUEST_ERRORS_MODE,
},
{
diff --git a/plugins/woocommerce-beta-tester/src/tools/commands/set-wccom-request-errors.js b/plugins/woocommerce-beta-tester/src/tools/commands/set-wccom-request-errors.js
index dedcb6d1491..27421a1860a 100644
--- a/plugins/woocommerce-beta-tester/src/tools/commands/set-wccom-request-errors.js
+++ b/plugins/woocommerce-beta-tester/src/tools/commands/set-wccom-request-errors.js
@@ -17,7 +17,7 @@ const OPTIONS = [
{ label: 'Disabled', value: 'disabled' },
];
-export const SetWccomRequestErrros = () => {
+export const SetWccomRequestErrors = () => {
const errorsMode = useSelect(
( select ) => select( store ).getWccomRequestErrorsMode(),
[]
diff --git a/plugins/woocommerce-beta-tester/src/tools/index.js b/plugins/woocommerce-beta-tester/src/tools/index.js
index 822d03d85b5..792d87a9529 100644
--- a/plugins/woocommerce-beta-tester/src/tools/index.js
+++ b/plugins/woocommerce-beta-tester/src/tools/index.js
@@ -16,7 +16,7 @@ function Tools( {
actions,
currentlyRunningCommands,
messages,
- comandParams,
+ commandParams,
} ) {
actions = actions();
return (
@@ -45,7 +45,7 @@ function Tools( {
<tbody>
{ commands.map(
( { action, command, description }, index ) => {
- const params = comandParams[ action ] ?? false;
+ const params = commandParams[ action ] ?? false;
return (
<tr key={ index }>
<td className="command">{ command }</td>
@@ -82,7 +82,7 @@ export default compose(
return {
currentlyRunningCommands: getCurrentlyRunning(),
messages: getMessages(),
- comandParams: getCommandParams(),
+ commandParams: getCommandParams(),
};
} ),
withDispatch( ( dispatch ) => {
diff --git a/plugins/woocommerce/assets/images/onboarding/tiktok.svg b/plugins/woocommerce/assets/images/onboarding/tiktok.svg
index 1023b690e47..84dde05e44a 100644
--- a/plugins/woocommerce/assets/images/onboarding/tiktok.svg
+++ b/plugins/woocommerce/assets/images/onboarding/tiktok.svg
@@ -17,4 +17,4 @@
.st15{fill:#F58220;}
.st16{fill:#E6162D;}
.st17{fill:#FF9933;}
-</style><g id="guidlines"/><g id="FB"/><g id="ig"/><g id="yt"/><g id="twitter"/><g id="snapchat"/><g id="WA"/><g id="Pinterrest"/><g id="Layer_9"/><g id="Layer_10"/><g id="Layer_11"><g><g><path class="st11" d="M58,19.4v9.3c-0.5,0-1.1,0.1-1.7,0.1c-4.5,0-8.7-1.7-11.9-4.4v19.8c0,4-1.3,7.8-3.6,10.8 c-3.2,4.3-8.4,7.2-14.3,7.2c-6.4,0-12-3.4-15.1-8.4c3.2,3,7.5,4.9,12.2,4.9c5.8,0,11-2.8,14.2-7.2c2.2-3,3.6-6.7,3.6-10.8V20.8 c3.2,2.8,7.3,4.4,11.9,4.4c0.6,0,1.1,0,1.7-0.1v-6c0.9,0.2,1.7,0.3,2.6,0.3H58z"/><path class="st11" d="M29,26.3v10.3c-0.7-0.2-1.5-0.3-2.2-0.3c-4.4,0-8,3.7-8,8.2c0,1,0.2,1.9,0.5,2.8c-2-1.5-3.4-3.9-3.4-6.6 c0-4.5,3.6-8.2,8-8.2c0.8,0,1.5,0.1,2.2,0.3l0-6.6c0.2,0,0.4,0,0.6,0C27.5,26.2,28.3,26.2,29,26.3z"/><path class="st11" d="M45.9,12c-1.8-1.6-3.1-3.8-3.8-6.1h2.4c0,0.5,0,0.9,0,1.4C44.7,8.9,45.2,10.5,45.9,12z"/></g></g><path d="M55.1,19.2v6c-0.5,0.1-1.1,0.1-1.7,0.1c-4.5,0-8.7-1.7-11.9-4.4v19.8c0,4-1.3,7.8-3.6,10.8c-3.3,4.4-8.4,7.2-14.2,7.2 c-4.7,0-9-1.9-12.2-4.9c-1.7-2.8-2.7-6-2.7-9.5c0-9.7,7.7-17.6,17.3-17.9l0,6.6c-0.7-0.2-1.5-0.3-2.2-0.3c-4.4,0-8,3.7-8,8.2 c0,2.7,1.3,5.2,3.4,6.6c1.1,3.1,4.1,5.4,7.5,5.4c4.4,0,8-3.7,8-8.2V5.9h7.3c0.7,2.4,2,4.5,3.8,6.1C47.7,15.6,51.1,18.3,55.1,19.2z"/><g><g><g><path class="st12" d="M26.1,22.8l0,3.4c-9.6,0.3-17.3,8.2-17.3,17.9c0,3.5,1,6.7,2.7,9.5C8.1,50.3,6,45.7,6,40.5 c0-9.9,8-17.9,17.8-17.9C24.6,22.6,25.4,22.7,26.1,22.8z"/><path class="st12" d="M42.1,5.9h-7.3v38.6c0,4.5-3.6,8.2-8,8.2c-3.5,0-6.4-2.2-7.5-5.4c1.3,0.9,2.9,1.5,4.6,1.5 c4.4,0,8-3.6,8-8.1V2h9.7v0.2c0,0.4,0,0.8,0.1,1.2C41.7,4.2,41.9,5.1,42.1,5.9z"/></g></g><path class="st12" d="M55.1,15.5C55.1,15.5,55.1,15.5,55.1,15.5v3.6c-4-0.8-7.4-3.5-9.3-7.1C48.3,14.3,51.5,15.6,55.1,15.5z"/></g></g><g id="Layer_12"/><g id="Layer_13"/><g id="Layer_14"/><g id="Layer_15"/><g id="Layer_16"/><g id="Layer_17"/></svg>
\ No newline at end of file
+</style><g id="guidelines"/><g id="FB"/><g id="ig"/><g id="yt"/><g id="twitter"/><g id="snapchat"/><g id="WA"/><g id="Pinterrest"/><g id="Layer_9"/><g id="Layer_10"/><g id="Layer_11"><g><g><path class="st11" d="M58,19.4v9.3c-0.5,0-1.1,0.1-1.7,0.1c-4.5,0-8.7-1.7-11.9-4.4v19.8c0,4-1.3,7.8-3.6,10.8 c-3.2,4.3-8.4,7.2-14.3,7.2c-6.4,0-12-3.4-15.1-8.4c3.2,3,7.5,4.9,12.2,4.9c5.8,0,11-2.8,14.2-7.2c2.2-3,3.6-6.7,3.6-10.8V20.8 c3.2,2.8,7.3,4.4,11.9,4.4c0.6,0,1.1,0,1.7-0.1v-6c0.9,0.2,1.7,0.3,2.6,0.3H58z"/><path class="st11" d="M29,26.3v10.3c-0.7-0.2-1.5-0.3-2.2-0.3c-4.4,0-8,3.7-8,8.2c0,1,0.2,1.9,0.5,2.8c-2-1.5-3.4-3.9-3.4-6.6 c0-4.5,3.6-8.2,8-8.2c0.8,0,1.5,0.1,2.2,0.3l0-6.6c0.2,0,0.4,0,0.6,0C27.5,26.2,28.3,26.2,29,26.3z"/><path class="st11" d="M45.9,12c-1.8-1.6-3.1-3.8-3.8-6.1h2.4c0,0.5,0,0.9,0,1.4C44.7,8.9,45.2,10.5,45.9,12z"/></g></g><path d="M55.1,19.2v6c-0.5,0.1-1.1,0.1-1.7,0.1c-4.5,0-8.7-1.7-11.9-4.4v19.8c0,4-1.3,7.8-3.6,10.8c-3.3,4.4-8.4,7.2-14.2,7.2 c-4.7,0-9-1.9-12.2-4.9c-1.7-2.8-2.7-6-2.7-9.5c0-9.7,7.7-17.6,17.3-17.9l0,6.6c-0.7-0.2-1.5-0.3-2.2-0.3c-4.4,0-8,3.7-8,8.2 c0,2.7,1.3,5.2,3.4,6.6c1.1,3.1,4.1,5.4,7.5,5.4c4.4,0,8-3.7,8-8.2V5.9h7.3c0.7,2.4,2,4.5,3.8,6.1C47.7,15.6,51.1,18.3,55.1,19.2z"/><g><g><g><path class="st12" d="M26.1,22.8l0,3.4c-9.6,0.3-17.3,8.2-17.3,17.9c0,3.5,1,6.7,2.7,9.5C8.1,50.3,6,45.7,6,40.5 c0-9.9,8-17.9,17.8-17.9C24.6,22.6,25.4,22.7,26.1,22.8z"/><path class="st12" d="M42.1,5.9h-7.3v38.6c0,4.5-3.6,8.2-8,8.2c-3.5,0-6.4-2.2-7.5-5.4c1.3,0.9,2.9,1.5,4.6,1.5 c4.4,0,8-3.6,8-8.1V2h9.7v0.2c0,0.4,0,0.8,0.1,1.2C41.7,4.2,41.9,5.1,42.1,5.9z"/></g></g><path class="st12" d="M55.1,15.5C55.1,15.5,55.1,15.5,55.1,15.5v3.6c-4-0.8-7.4-3.5-9.3-7.1C48.3,14.3,51.5,15.6,55.1,15.5z"/></g></g><g id="Layer_12"/><g id="Layer_13"/><g id="Layer_14"/><g id="Layer_15"/><g id="Layer_16"/><g id="Layer_17"/></svg>
\ No newline at end of file
diff --git a/plugins/woocommerce/bin/phpcs/WooCommerceStoreApi/Sniffs/StoreApi/CartTokenSourceSniff.php b/plugins/woocommerce/bin/phpcs/WooCommerceStoreApi/Sniffs/StoreApi/CartTokenSourceSniff.php
index 296dba3206b..a4e8a6ee80e 100644
--- a/plugins/woocommerce/bin/phpcs/WooCommerceStoreApi/Sniffs/StoreApi/CartTokenSourceSniff.php
+++ b/plugins/woocommerce/bin/phpcs/WooCommerceStoreApi/Sniffs/StoreApi/CartTokenSourceSniff.php
@@ -13,7 +13,7 @@ use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\Sniff;
/**
- * The cart token selects which customer session a request loads. It must always be read from a unified palce the via CartTokenUtils::get_request_cart_token().
+ * The cart token selects which customer session a request loads. It must always be read from a unified place the via CartTokenUtils::get_request_cart_token().
*
*/
class CartTokenSourceSniff implements Sniff {
diff --git a/plugins/woocommerce/client/admin/client/analytics/report/downloads/config.js b/plugins/woocommerce/client/admin/client/analytics/report/downloads/config.js
index 189aa95294b..be0f480096f 100644
--- a/plugins/woocommerce/client/admin/client/analytics/report/downloads/config.js
+++ b/plugins/woocommerce/client/admin/client/analytics/report/downloads/config.js
@@ -12,11 +12,11 @@ import {
getProductLabels,
} from '../../../lib/async-requests';
-const DOWLOADS_REPORT_CHARTS_FILTER =
+const DOWNLOADS_REPORT_CHARTS_FILTER =
'woocommerce_admin_downloads_report_charts';
-const DOWLOADS_REPORT_FILTERS_FILTER =
+const DOWNLOADS_REPORT_FILTERS_FILTER =
'woocommerce_admin_downloads_report_filters';
-const DOWLOADS_REPORT_ADVANCED_FILTERS_FILTER =
+const DOWNLOADS_REPORT_ADVANCED_FILTERS_FILTER =
'woocommerce_admin_downloads_report_advanced_filters';
/**
@@ -29,7 +29,7 @@ const DOWLOADS_REPORT_ADVANCED_FILTERS_FILTER =
* @filter woocommerce_admin_downloads_report_charts
* @param {Array.<chart>} charts Report charts.
*/
-export const charts = applyFilters( DOWLOADS_REPORT_CHARTS_FILTER, [
+export const charts = applyFilters( DOWNLOADS_REPORT_CHARTS_FILTER, [
{
key: 'download_count',
label: __( 'Downloads', 'woocommerce' ),
@@ -47,7 +47,7 @@ export const charts = applyFilters( DOWLOADS_REPORT_CHARTS_FILTER, [
* @filter woocommerce_admin_downloads_report_filters
* @param {Array.<filter>} filters Report filters.
*/
-export const filters = applyFilters( DOWLOADS_REPORT_FILTERS_FILTER, [
+export const filters = applyFilters( DOWNLOADS_REPORT_FILTERS_FILTER, [
{
label: __( 'Show', 'woocommerce' ),
staticParams: [ 'chartType', 'paged', 'per_page' ],
@@ -74,7 +74,7 @@ export const filters = applyFilters( DOWLOADS_REPORT_FILTERS_FILTER, [
* @param {Object} advancedFilters.filters An object specifying a report's Advanced Filters.
*/
export const advancedFilters = applyFilters(
- DOWLOADS_REPORT_ADVANCED_FILTERS_FILTER,
+ DOWNLOADS_REPORT_ADVANCED_FILTERS_FILTER,
{
title: _x(
'Downloads match <select/> filters',
diff --git a/plugins/woocommerce/client/admin/client/blueprint/components/test/get-option-groups.test.js b/plugins/woocommerce/client/admin/client/blueprint/components/test/get-option-groups.test.js
index 8838302fc7a..ffc9d8f5b3d 100644
--- a/plugins/woocommerce/client/admin/client/blueprint/components/test/get-option-groups.test.js
+++ b/plugins/woocommerce/client/admin/client/blueprint/components/test/get-option-groups.test.js
@@ -8,7 +8,7 @@ import {
} from '../get-option-groups';
describe( 'getOptionGroups', () => {
- it( 'should return nothing for unmatched opions', () => {
+ it( 'should return nothing for unmatched options', () => {
const options = [ 'unknown-value' ];
const result = getOptionGroups( options );
expect( result ).toEqual( [] );
diff --git a/plugins/woocommerce/client/admin/client/core-profiler/components/navigation/test/index.js b/plugins/woocommerce/client/admin/client/core-profiler/components/navigation/test/index.js
index ec4deb9fc77..4cd4b330bd0 100644
--- a/plugins/woocommerce/client/admin/client/core-profiler/components/navigation/test/index.js
+++ b/plugins/woocommerce/client/admin/client/core-profiler/components/navigation/test/index.js
@@ -14,7 +14,7 @@ describe( 'Navigation', () => {
expect( queryByText( 'Skip this step' ) ).toBeInTheDocument();
} );
- it( 'should redner provided skip button text', () => {
+ it( 'should render provided skip button text', () => {
const { queryByText } = render(
<Navigation onSkip={ () => {} } skipText="this is test" />
);
diff --git a/plugins/woocommerce/client/admin/client/core-profiler/pages/BusinessInfo.tsx b/plugins/woocommerce/client/admin/client/core-profiler/pages/BusinessInfo.tsx
index 5b76869c404..2b28bf8216a 100644
--- a/plugins/woocommerce/client/admin/client/core-profiler/pages/BusinessInfo.tsx
+++ b/plugins/woocommerce/client/admin/client/core-profiler/pages/BusinessInfo.tsx
@@ -342,7 +342,7 @@ export const BusinessInfo = ( {
<TextControl
__nextHasNoMarginBottom
className={ clsx(
- 'woocommerce-profiler-business-info-email-adddress',
+ 'woocommerce-profiler-business-info-email-address',
{ 'is-error': isEmailInvalid }
) }
onChange={ ( value ) => {
diff --git a/plugins/woocommerce/client/admin/client/core-profiler/style.scss b/plugins/woocommerce/client/admin/client/core-profiler/style.scss
index 235d83c0543..0cdda4205df 100644
--- a/plugins/woocommerce/client/admin/client/core-profiler/style.scss
+++ b/plugins/woocommerce/client/admin/client/core-profiler/style.scss
@@ -528,7 +528,7 @@
}
.woocommerce-profiler-question-label,
- .woocommerce-profiler-business-info-email-adddress
+ .woocommerce-profiler-business-info-email-address
.components-base-control__label,
.woocommerce-profiler-business-info-store-name
.components-base-control__label {
@@ -542,14 +542,14 @@
.woocommerce-profiler-question-label
.woocommerce-profiler-question-required,
- .woocommerce-profiler-business-info-email-adddress
+ .woocommerce-profiler-business-info-email-address
.woocommerce-profiler-question-required {
color: #cc1818;
padding-left: 3px;
}
.woocommerce-profiler-business-info-store-name,
- .woocommerce-profiler-business-info-email-adddress {
+ .woocommerce-profiler-business-info-email-address {
.components-base-control__field {
margin-bottom: 8px;
}
@@ -565,7 +565,7 @@
}
}
- .woocommerce-profiler-business-info-email-adddress.is-error {
+ .woocommerce-profiler-business-info-email-address.is-error {
& .components-text-control__input {
box-shadow: 0 0 0 1px var(--color-error);
}
@@ -576,11 +576,11 @@
width: 20px;
}
- .woocommerce-profiler-select-control__country-spacer + .woocommerce-profiler-business-info-email-adddress {
+ .woocommerce-profiler-select-control__country-spacer + .woocommerce-profiler-business-info-email-address {
margin-top: 8px;
}
- .woocommerce-profiler-business-info-email-adddress {
+ .woocommerce-profiler-business-info-email-address {
margin-top: 20px;
}
diff --git a/plugins/woocommerce/client/admin/client/guided-tours/wc-addons-tour/get-config.ts b/plugins/woocommerce/client/admin/client/guided-tours/wc-addons-tour/get-config.ts
index 0cc21ab19e0..4eae25a6557 100644
--- a/plugins/woocommerce/client/admin/client/guided-tours/wc-addons-tour/get-config.ts
+++ b/plugins/woocommerce/client/admin/client/guided-tours/wc-addons-tour/get-config.ts
@@ -20,7 +20,7 @@ export const getTourConfig = ( {
steps: TourKitTypes.WooStep[];
} ): TourKitTypes.WooConfig => {
let previousPopperTopPosition: number | null = null;
- let perviousPopperRef: unknown = null;
+ let previousPopperRef: unknown = null;
const defaultPlacement = 'top-start';
return {
@@ -51,7 +51,7 @@ export const getTourConfig = ( {
allowedAutoPlacements: [ 'right', 'bottom', 'top' ],
fallbackPlacements: [ 'bottom-start', 'right' ],
flipVariations: false,
- boundry: 'clippingParents',
+ boundary: 'clippingParents',
},
},
{
@@ -60,7 +60,7 @@ export const getTourConfig = ( {
phase: 'read',
fn( { state, instance } ) {
// 1. First modification - force `right` placement for items in admin menu.
- if ( perviousPopperRef !== state.elements.reference ) {
+ if ( previousPopperRef !== state.elements.reference ) {
const isAdminMenuItem = (
state.elements.reference as HTMLElement
).closest( '#adminmenu' );
@@ -87,7 +87,7 @@ export const getTourConfig = ( {
// Also, change if popper's top position changed - the modifier can be called
// multiple times for the same position.
if (
- perviousPopperRef !== state.elements.reference &&
+ previousPopperRef !== state.elements.reference &&
arrowHeight !== 0 &&
previousPopperTopPosition !== popperBoundingRect.top
) {
@@ -95,7 +95,7 @@ export const getTourConfig = ( {
popperBoundingRect
);
previousPopperTopPosition = popperBoundingRect.top;
- perviousPopperRef = state.elements.reference;
+ previousPopperRef = state.elements.reference;
}
},
},
diff --git a/plugins/woocommerce/client/admin/client/homescreen/activity-panel/reviews/test/index.js b/plugins/woocommerce/client/admin/client/homescreen/activity-panel/reviews/test/index.js
index 7b48682ed3a..dc96bbf4ad9 100644
--- a/plugins/woocommerce/client/admin/client/homescreen/activity-panel/reviews/test/index.js
+++ b/plugins/woocommerce/client/admin/client/homescreen/activity-panel/reviews/test/index.js
@@ -79,7 +79,7 @@ describe( 'ReviewsPanel', () => {
expect( getByTextWithMarkup( 'Reviewer reviewed Cap' ) ).not.toBeNull();
} );
- it( 'should render checkmark circle icon in the review title, if review is verfied owner', () => {
+ it( 'should render checkmark circle icon in the review title, if review is verified owner', () => {
render(
<ReviewsPanel
hasUnapprovedReviews={ true }
diff --git a/plugins/woocommerce/client/admin/client/homescreen/mobile-app-modal/components/useJetpackPluginState.tsx b/plugins/woocommerce/client/admin/client/homescreen/mobile-app-modal/components/useJetpackPluginState.tsx
index cafc0fff9f0..dcf724a4045 100644
--- a/plugins/woocommerce/client/admin/client/homescreen/mobile-app-modal/components/useJetpackPluginState.tsx
+++ b/plugins/woocommerce/client/admin/client/homescreen/mobile-app-modal/components/useJetpackPluginState.tsx
@@ -20,7 +20,7 @@ export const JetpackPluginStates = {
NOT_OWNER_OF_CONNECTION: 'not-owner-of-connection',
/** Jetpack Plugin installed and WordPress.com user connected */
FULL_CONNECTION: 'full-connection',
- /** Still retrieving Jetpack state from Wordpress Installation */
+ /** Still retrieving Jetpack state from WordPress Installation */
INITIALIZING: 'initializing',
} as const;
diff --git a/plugins/woocommerce/client/admin/client/homescreen/test/index.js b/plugins/woocommerce/client/admin/client/homescreen/test/index.js
index 0ed34c9c3a1..dccb181a4a9 100644
--- a/plugins/woocommerce/client/admin/client/homescreen/test/index.js
+++ b/plugins/woocommerce/client/admin/client/homescreen/test/index.js
@@ -151,7 +151,7 @@ describe( 'Homescreen Layout', () => {
).toHaveLength( 1 );
} );
- it( 'should falback to single column layout', () => {
+ it( 'should fallback to single column layout', () => {
useUserPreferences.mockReturnValue( {
homepage_layout: '',
} );
diff --git a/plugins/woocommerce/client/admin/client/launch-your-store/hub/main-content/components/resizable-frame.jsx b/plugins/woocommerce/client/admin/client/launch-your-store/hub/main-content/components/resizable-frame.jsx
index a79f1615333..b36045fd1da 100644
--- a/plugins/woocommerce/client/admin/client/launch-your-store/hub/main-content/components/resizable-frame.jsx
+++ b/plugins/woocommerce/client/admin/client/launch-your-store/hub/main-content/components/resizable-frame.jsx
@@ -79,7 +79,7 @@ function ResizableFrame( {
setIsOversized,
isReady,
children,
- /** The default (unresized) width/height of the frame, based on the space availalbe in the viewport. */
+ /** The default (unresized) width/height of the frame, based on the space available in the viewport. */
defaultSize,
innerContentStyle,
isHandleVisibleByDefault = false,
diff --git a/plugins/woocommerce/client/admin/client/launch-your-store/hub/main-content/pages/launch-store-success/test/WahtsNext.tsx b/plugins/woocommerce/client/admin/client/launch-your-store/hub/main-content/pages/launch-store-success/test/WhatsNext.tsx
similarity index 100%
rename from plugins/woocommerce/client/admin/client/launch-your-store/hub/main-content/pages/launch-store-success/test/WahtsNext.tsx
rename to plugins/woocommerce/client/admin/client/launch-your-store/hub/main-content/pages/launch-store-success/test/WhatsNext.tsx
diff --git a/plugins/woocommerce/client/admin/client/marketing/coupons/recommended-extensions/index.js b/plugins/woocommerce/client/admin/client/marketing/coupons/recommended-extensions/index.js
index 420b2f3b192..db59ed6cc91 100644
--- a/plugins/woocommerce/client/admin/client/marketing/coupons/recommended-extensions/index.js
+++ b/plugins/woocommerce/client/admin/client/marketing/coupons/recommended-extensions/index.js
@@ -33,7 +33,7 @@ const RecommendedExtensions = ( {
const categoryClass = category
? `woocommerce-marketing-recommended-extensions-card__category-${ category }`
: '';
- const placholdersCount = 5;
+ const placeholdersCount = 5;
return (
<Card
@@ -48,10 +48,10 @@ const RecommendedExtensions = ( {
<div
className={ clsx(
'woocommerce-marketing-recommended-extensions-card__items',
- `woocommerce-marketing-recommended-extensions-card__items--count-${ placholdersCount }`
+ `woocommerce-marketing-recommended-extensions-card__items--count-${ placeholdersCount }`
) }
>
- { [ ...Array( placholdersCount ).keys() ].map( ( key ) => (
+ { [ ...Array( placeholdersCount ).keys() ].map( ( key ) => (
<RecommendedExtensionsPlaceholder key={ key } />
) ) }
</div>
diff --git a/plugins/woocommerce/client/admin/client/marketplace/components/constants.ts b/plugins/woocommerce/client/admin/client/marketplace/components/constants.ts
index e609cea435c..cb70c9b2e0e 100644
--- a/plugins/woocommerce/client/admin/client/marketplace/components/constants.ts
+++ b/plugins/woocommerce/client/admin/client/marketplace/components/constants.ts
@@ -15,7 +15,7 @@ export const MARKETPLACE_IAM_SETTINGS_API_PATH =
export const MARKETPLACE_ITEMS_PER_PAGE = 60; // This should match the number of results returned by the API
export const MARKETPLACE_SEARCH_RESULTS_PER_PAGE = 8;
export const MARKETPLACE_CART_PATH = MARKETPLACE_HOST + '/cart/';
-export const MARKETPLACE_RENEW_SUBSCRIPTON_PATH =
+export const MARKETPLACE_RENEW_SUBSCRIPTION_PATH =
MARKETPLACE_HOST + '/my-account/my-subscriptions/';
export const MARKETPLACE_SUPPORT_PATH =
MARKETPLACE_HOST + '/my-account/contact-support/';
diff --git a/plugins/woocommerce/client/admin/client/marketplace/components/header-account/header-account.scss b/plugins/woocommerce/client/admin/client/marketplace/components/header-account/header-account.scss
index 3c822c947ac..db5909cc921 100644
--- a/plugins/woocommerce/client/admin/client/marketplace/components/header-account/header-account.scss
+++ b/plugins/woocommerce/client/admin/client/marketplace/components/header-account/header-account.scss
@@ -91,7 +91,7 @@
align-items: center;
gap: $grid-unit-10;
border: 1px solid $gutenberg-gray-300;
- margin: -6px; // accomodate for being placed in a button
+ margin: -6px; // accommodate for being placed in a button
height: 40px;
padding-left: $grid-unit-10;
padding-right: $grid-unit-10;
diff --git a/plugins/woocommerce/client/admin/client/marketplace/components/my-subscriptions/error-utils.ts b/plugins/woocommerce/client/admin/client/marketplace/components/my-subscriptions/error-utils.ts
index c1ad1ea8f35..e1ad6c3f565 100644
--- a/plugins/woocommerce/client/admin/client/marketplace/components/my-subscriptions/error-utils.ts
+++ b/plugins/woocommerce/client/admin/client/marketplace/components/my-subscriptions/error-utils.ts
@@ -9,7 +9,7 @@ import { recordEvent } from '@woocommerce/tracks';
*/
import type { NoticeAction } from '~/lib/notices/types';
import {
- MARKETPLACE_RENEW_SUBSCRIPTON_PATH,
+ MARKETPLACE_RENEW_SUBSCRIPTION_PATH,
MARKETPLACE_SUPPORT_PATH,
} from '../constants';
import { ERROR_CODES_WITH_MESSAGES } from './constants';
@@ -129,7 +129,7 @@ function getConnectionErrorAction( error: ConnectError ): StoreAction | null {
label: __( 'Manage subscriptions', 'woocommerce' ),
onClick: () => {
trackConnectErrorActionClicked( 'manage_subscriptions', code );
- window.location.assign( MARKETPLACE_RENEW_SUBSCRIPTON_PATH );
+ window.location.assign( MARKETPLACE_RENEW_SUBSCRIPTION_PATH );
},
};
}
diff --git a/plugins/woocommerce/client/admin/client/marketplace/components/products/products.tsx b/plugins/woocommerce/client/admin/client/marketplace/components/products/products.tsx
index cf524b5f1d5..054836f4c94 100644
--- a/plugins/woocommerce/client/admin/client/marketplace/components/products/products.tsx
+++ b/plugins/woocommerce/client/admin/client/marketplace/components/products/products.tsx
@@ -69,7 +69,7 @@ export default function Products( props: ProductsProps ) {
const baseContainerClass = 'woocommerce-marketplace__search-';
const containerClassName = clsx( baseContainerClass + labelForClassName );
- const viewAllButonClassName = clsx(
+ const viewAllButtonClassName = clsx(
'woocommerce-marketplace__view-all-button',
baseContainerClass + 'button-' + labelForClassName
);
@@ -168,7 +168,7 @@ export default function Products( props: ProductsProps ) {
) }
{ ! isLoading && ! hasNoResults && showAllButton && (
<Button
- className={ viewAllButonClassName }
+ className={ viewAllButtonClassName }
variant="secondary"
text={ __( 'View all', 'woocommerce' ) }
onClick={ () => showSection( props.type ) }
diff --git a/plugins/woocommerce/client/admin/client/marketplace/utils/functions.tsx b/plugins/woocommerce/client/admin/client/marketplace/utils/functions.tsx
index 7afbc9e0d67..685e048c3f0 100644
--- a/plugins/woocommerce/client/admin/client/marketplace/utils/functions.tsx
+++ b/plugins/woocommerce/client/admin/client/marketplace/utils/functions.tsx
@@ -17,7 +17,7 @@ import {
MARKETPLACE_CATEGORY_API_PATH,
MARKETPLACE_HOST,
MARKETPLACE_SEARCH_API_PATH,
- MARKETPLACE_RENEW_SUBSCRIPTON_PATH,
+ MARKETPLACE_RENEW_SUBSCRIPTION_PATH,
} from '../components/constants';
import { Subscription } from '../components/my-subscriptions/types';
import {
@@ -326,7 +326,7 @@ function disconnectProduct( subscription: Subscription ): Promise< void > {
} );
}
-type WpAjaxReponse = {
+type WpAjaxResponse = {
success: boolean;
data: WpAjaxResponseData;
};
@@ -344,7 +344,7 @@ function wpAjax(
theme?: string;
success?: boolean;
}
-): Promise< WpAjaxReponse > {
+): Promise< WpAjaxResponse > {
return new Promise( ( resolve, reject ) => {
if ( ! window.wp.updates ) {
reject( __( 'Please reload and try again', 'woocommerce' ) );
@@ -439,7 +439,9 @@ function installProduct( subscription: Subscription ): Promise< void > {
} );
}
-function updateProduct( subscription: Subscription ): Promise< WpAjaxReponse > {
+function updateProduct(
+ subscription: Subscription
+): Promise< WpAjaxResponse > {
return wpAjax( 'update-' + subscription.product_type, {
slug: subscription.local.slug,
[ subscription.product_type ]: subscription.local.path,
@@ -521,9 +523,9 @@ const appendURLParams = (
const enableAutorenewalUrl = ( subscription: Subscription ): string => {
if ( ! subscription.product_key ) {
// review subscriptions on the Marketplace
- return MARKETPLACE_RENEW_SUBSCRIPTON_PATH;
+ return MARKETPLACE_RENEW_SUBSCRIPTION_PATH;
}
- return appendURLParams( MARKETPLACE_RENEW_SUBSCRIPTON_PATH, [
+ return appendURLParams( MARKETPLACE_RENEW_SUBSCRIPTION_PATH, [
[ 'key', subscription.product_key.toString() ],
] );
};
diff --git a/plugins/woocommerce/client/admin/client/task-lists/fills/shipping/index.js b/plugins/woocommerce/client/admin/client/task-lists/fills/shipping/index.js
index ffa4ec57862..b34fdf4a57b 100644
--- a/plugins/woocommerce/client/admin/client/task-lists/fills/shipping/index.js
+++ b/plugins/woocommerce/client/admin/client/task-lists/fills/shipping/index.js
@@ -275,7 +275,7 @@ export class Shipping extends Component {
( slug ) => typeof slug === 'string' && slug.trim().length > 0
);
- const onShippingPluginInstalltionSkip = () => {
+ const onShippingPluginInstallationSkip = () => {
recordEvent( 'tasklist_shipping_label_printing', {
install: false,
plugins_to_activate: pluginsToActivate,
@@ -671,7 +671,7 @@ export class Shipping extends Component {
pluginsToPromote[ 0 ]?.slug,
} );
} }
- onSkip={ onShippingPluginInstalltionSkip }
+ onSkip={ onShippingPluginInstallationSkip }
pluginSlugs={ pluginsToActivate }
installText={ __(
'Install and enable',
@@ -682,7 +682,7 @@ export class Shipping extends Component {
) : (
<Button
isTertiary
- onClick={ onShippingPluginInstalltionSkip }
+ onClick={ onShippingPluginInstallationSkip }
className={ clsx(
'woocommerce-task-shipping-recommendations_skip-button',
pluginsToPromote.length === 2 ? 'dual' : ''
diff --git a/plugins/woocommerce/client/admin/client/task-lists/fills/tax/stripe-tax/card.tsx b/plugins/woocommerce/client/admin/client/task-lists/fills/tax/stripe-tax/card.tsx
index b4dae14cb60..44fd54b363d 100644
--- a/plugins/woocommerce/client/admin/client/task-lists/fills/tax/stripe-tax/card.tsx
+++ b/plugins/woocommerce/client/admin/client/task-lists/fills/tax/stripe-tax/card.tsx
@@ -61,7 +61,7 @@ export const Card = ( {
redirectToStripeTaxSettings();
} }
>
- { __( 'Continue to setttings', 'woocommerce' ) }
+ { __( 'Continue to settings', 'woocommerce' ) }
</Button>
) : (
<Plugins
@@ -84,7 +84,7 @@ export const Card = ( {
} ).then( () => {
createSuccessNotice(
__(
- "Stripe Tax for Woocommerce has been successfully installed. Let's configure it now.",
+ "Stripe Tax for WooCommerce has been successfully installed. Let's configure it now.",
'woocommerce'
)
);
diff --git a/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/customer-notification-form/index.tsx b/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/customer-notification-form/index.tsx
index 4aeeafa3697..61cd56924e4 100644
--- a/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/customer-notification-form/index.tsx
+++ b/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/customer-notification-form/index.tsx
@@ -63,7 +63,7 @@ export default function CustomerNotificationBox( {
return (
<FulfillmentCard
size="small"
- isCollapsable={ false }
+ isCollapsible={ false }
initialState="expanded"
header={
<>
diff --git a/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/metadata-viewer/index.tsx b/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/metadata-viewer/index.tsx
index 5c8706162ab..05b9b5c5abf 100644
--- a/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/metadata-viewer/index.tsx
+++ b/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/metadata-viewer/index.tsx
@@ -22,7 +22,7 @@ export default function MetadataViewer( { fulfillment }: MetadataViewerProps ) {
return (
<FulfillmentCard
- isCollapsable={ true }
+ isCollapsible={ true }
header={
<>
<PostListIcon />
diff --git a/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/shipment-form/index.tsx b/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/shipment-form/index.tsx
index 1807df25223..697d1c39a6a 100644
--- a/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/shipment-form/index.tsx
+++ b/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/shipment-form/index.tsx
@@ -26,7 +26,7 @@ export default function ShipmentForm() {
return (
<FulfillmentCard
- isCollapsable={ false }
+ isCollapsible={ false }
initialState="expanded"
header={
<>
diff --git a/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/shipment-form/shipment-viewer.tsx b/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/shipment-form/shipment-viewer.tsx
index c9cdd34819b..a3a67f39041 100644
--- a/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/shipment-form/shipment-viewer.tsx
+++ b/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/shipment-form/shipment-viewer.tsx
@@ -47,7 +47,7 @@ export default function ShipmentViewer() {
return (
<FulfillmentCard
- isCollapsable={ isShipmentInformationProvided }
+ isCollapsible={ isShipmentInformationProvided }
initialState="collapsed"
header={
isShipmentInformationProvided ? (
diff --git a/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/user-interface/fulfillments-card/card.tsx b/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/user-interface/fulfillments-card/card.tsx
index 6cbcfa12ac3..2d65c92d51f 100644
--- a/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/user-interface/fulfillments-card/card.tsx
+++ b/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/user-interface/fulfillments-card/card.tsx
@@ -12,13 +12,13 @@ import './card.scss';
export default function FulfillmentCard( {
header,
- isCollapsable,
+ isCollapsible,
initialState,
size = 'medium',
children,
}: {
header: ReactNode;
- isCollapsable?: boolean;
+ isCollapsible?: boolean;
initialState?: 'collapsed' | 'expanded';
size?: 'small' | 'medium' | 'large';
children: ReactNode;
@@ -41,11 +41,11 @@ export default function FulfillmentCard( {
<div
className={ [
'woocommerce-fulfillment-card__header',
- isCollapsable
+ isCollapsible
? 'woocommerce-fulfillment-card__header--clickable'
: '',
].join( ' ' ) }
- { ...( isCollapsable
+ { ...( isCollapsible
? {
onClick: handleToggle,
onKeyUp: handleKeyUp,
@@ -55,7 +55,7 @@ export default function FulfillmentCard( {
: {} ) }
>
{ header }
- { isCollapsable && (
+ { isCollapsible && (
<Button
__next40pxDefaultSize
size="small"
@@ -80,7 +80,7 @@ export default function FulfillmentCard( {
<div
className={ [
'woocommerce-fulfillment-card__body',
- isCollapsable ? '' : 'no-collapse',
+ isCollapsible ? '' : 'no-collapse',
].join( ' ' ) }
>
{ children }
diff --git a/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/user-interface/fulfillments-card/test/card.test.js b/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/user-interface/fulfillments-card/test/card.test.js
index fc6697b6886..830f33bcd09 100644
--- a/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/user-interface/fulfillments-card/test/card.test.js
+++ b/plugins/woocommerce/client/admin/client/wp-admin-scripts/fulfillments/components/user-interface/fulfillments-card/test/card.test.js
@@ -18,13 +18,13 @@ jest.mock( '@wordpress/components', () => ( {
describe( 'FulfillmentCard', () => {
it( 'renders the header and children', () => {
render(
- <FulfillmentCard header={ <h1>Header</h1> } isCollapsable>
+ <FulfillmentCard header={ <h1>Header</h1> } isCollapsible>
<p>Child content</p>
</FulfillmentCard>
);
expect( screen.getByText( 'Header' ) ).toBeInTheDocument();
- // Children should not be visible by default for collapsable
+ // Children should not be visible by default for collapsible
expect( screen.queryByText( 'Child content' ) ).not.toBeInTheDocument();
// Click the header div (role="button") to expand
fireEvent.click(
@@ -33,9 +33,9 @@ describe( 'FulfillmentCard', () => {
expect( screen.getByText( 'Child content' ) ).toBeInTheDocument();
} );
- it( 'renders as collapsable and toggles visibility', () => {
+ it( 'renders as collapsible and toggles visibility', () => {
render(
- <FulfillmentCard header={ <h1>Header</h1> } isCollapsable>
+ <FulfillmentCard header={ <h1>Header</h1> } isCollapsible>
<p>Child content</p>
</FulfillmentCard>
);
@@ -52,23 +52,23 @@ describe( 'FulfillmentCard', () => {
expect( screen.queryByText( 'Child content' ) ).not.toBeInTheDocument();
} );
- it( 'renders without clickable header when not collapsable', () => {
+ it( 'renders without clickable header when not collapsible', () => {
render(
- <FulfillmentCard header={ <h1>Header</h1> } isCollapsable={ false }>
+ <FulfillmentCard header={ <h1>Header</h1> } isCollapsible={ false }>
<p>Child content</p>
</FulfillmentCard>
);
expect( screen.queryByRole( 'button' ) ).not.toBeInTheDocument();
- // Children should not be visible if not collapsable (matches component behavior)
+ // Children should not be visible if not collapsible (matches component behavior)
expect( screen.queryByText( 'Child content' ) ).not.toBeInTheDocument();
} );
- it( 'renders children if initialState is expanded (collapsable)', () => {
+ it( 'renders children if initialState is expanded (collapsible)', () => {
render(
<FulfillmentCard
header={ <h1>Header</h1> }
- isCollapsable
+ isCollapsible
initialState="expanded"
>
<p>Child content</p>
@@ -79,11 +79,11 @@ describe( 'FulfillmentCard', () => {
expect( screen.getByText( 'Child content' ) ).toBeInTheDocument();
} );
- it( 'does not render children if initialState is closed (collapsable)', () => {
+ it( 'does not render children if initialState is closed (collapsible)', () => {
render(
<FulfillmentCard
header={ <h1>Header</h1> }
- isCollapsable
+ isCollapsible
initialState="closed"
>
<p>Child content</p>
@@ -96,9 +96,9 @@ describe( 'FulfillmentCard', () => {
expect( screen.queryByText( 'Child content' ) ).not.toBeInTheDocument();
} );
- it( 'supports keyboard interaction on collapsable header', () => {
+ it( 'supports keyboard interaction on collapsible header', () => {
render(
- <FulfillmentCard header={ <h1>Header</h1> } isCollapsable>
+ <FulfillmentCard header={ <h1>Header</h1> } isCollapsible>
<p>Child content</p>
</FulfillmentCard>
);
diff --git a/plugins/woocommerce/client/admin/docs/woocommerce.com/analytics-basics.md b/plugins/woocommerce/client/admin/docs/woocommerce.com/analytics-basics.md
index 1cb3b7e38f8..c5222b94a20 100644
--- a/plugins/woocommerce/client/admin/docs/woocommerce.com/analytics-basics.md
+++ b/plugins/woocommerce/client/admin/docs/woocommerce.com/analytics-basics.md
@@ -1,7 +1,9 @@
# Using WooCommerce Analytics Reports
-Most of the new reports in the WooCommerce Analytics section have a set of common tools. This document will introduce you to those features, and how they can be utlized to customize and dive-deeper into the various new analytics reports.
+
+Most of the new reports in the WooCommerce Analytics section have a set of common tools. This document will introduce you to those features, and how they can be utilized to customize and dive-deeper into the various new analytics reports.
## Date Range Picker
+

The Date Range picker allows you to specify which dates you want to include in the report being viewed. When you first open the Date Range Picker, a variety of popular _presets_ allow you to quickly chose some common date ranges:
@@ -27,6 +29,7 @@ On the custom picker, you can either manually enter the start and end date using
After either choosing a preset, or a custom date range, click the _Update_ button to modify the data in the report. Note by doing this, the date range selected is added to the address of the report URL - which allows you to bookmark, or share a report url with a specific date range to other Store admins. This date selection is persisted on the report view until you navigate away from the report.
## Advanced Filters
+
Depending on the report you are viewing, their might also be other Quick Filters and/or Advanced filters that allow you to further customize the data set being viewed.

@@ -34,47 +37,54 @@ Depending on the report you are viewing, their might also be other Quick Filters
If filter options are available, they will be shown next to the Date Range picker, or below it on narrow/mobile viewports. Much like the date range selection, filters are also persisted to the URL which allows you to save a quick link to a specific filtered version of a report. Available filters for each report are covered more in-depth in each report's documentation.
## Summary Numbers / Chart
+

At the top of the reports, the Chart and Summary numbers offer quick access to key data, trends of that data, and a visualization of changes over time in the period selected, and the period being compared against.
### Summary Numbers
+

The _Summary Number_ tab gives you a quick view at the total figure for that metric over the period selected, the total number for the period being compared, and the percentage trend between those two figures. By clicking on a Summary Number, that particular metric is then displayed in the chart.
### Chart
+

-The charts on report pages offer quite a few options to customize the visualiztion of data. The data legend ( labeled A ) allows you to toggle the visibility of the different data set periods. The _Interval Selector_ ( labeled B ) allows you to adjust the interval displayed in the chart. The options available here are dependent upon the length of the date range selected:
+The charts on report pages offer quite a few options to customize the visualization of data. The data legend ( labeled A ) allows you to toggle the visibility of the different data set periods. The _Interval Selector_ ( labeled B ) allows you to adjust the interval displayed in the chart. The options available here are dependent upon the length of the date range selected:
-| Length of Date Range | Interval Options |
-|---|---|
+| Length of Date Range | Interval Options |
+| --- | --- |
| One year or more | 'day', 'week', 'month', 'quarter', 'year' |
| 90 days to 1 year | 'day', 'week', 'month', 'quarter' |
| 1 month - 89 days | 'day', 'week', 'month' |
| 1 week - 28 days | 'day', 'week' |
-| 1 day - 1 week | 'day' |
+| 1 day - 1 week | 'day' |
| 1 day | 'day', 'hour' |
And lastly, you can adjust the type of chart being displayed ( labeled B ) between a bar or line chart.
## Table
+

The table which displays the detailed data on Analytics reports also has a number of features that allow you to customize how the data is displayed, and even an option to download a csv copy the data used in the report for further analysis.
### Table Column Sorting
+

Many columns in reports will allow you to click on the column header to sort the tabular data by that value, and to either sort by that value in ascending or descending order. Simply click the column header to sort by that value, and click it again to change between ascending and descending sort.
### Toggle Column Visibility
-
+
+
If a report contains a data column that you don't need to be displayed, you can adjust the visibility of it by using the visibility menu on the right side of the table header. Click the column name in the menu to change the visibility of the column. Your visibility selections are persisted to your user preferences for each report, so on subsequent visits to that report, the columns you have previously toggled off will not be displayed.
### CSV Download
+

If you would like to download a copy of the data contained in the report table, you can do so by clicking the _Download_ button in the table header. If the amount of data shown in the report is limited to one page ( e.g. there is no pagination options shown in the table footer ), the csv file will download immediately.
@@ -84,9 +94,11 @@ If you would like to download a copy of the data contained in the report table,
If your selected date range results in a data set that spans more then one page in the table, your csv download will be processed as a background job by WooCommerce. Once the data is ready to be downloaded, an email will be sent to the address that is attached to your WordPress account with a link to download the file.
### Table Pagination
+

When the data displayed in the table is larger than the default single page size of 25, some pagination options will appear in the table footer area. Directional buttons, labeled `<` and `>` enable you to move backwards and forwards between pages, and a text field will allow you to jump to a specific page number. Furthermore you can change the number of rows to display per page.
### Table Search Box
-On some reports, a search box is displayed in the table header area as well. For details on what the search box does on a given report, please refer to the associated documentation page for that report.
\ No newline at end of file
+
+On some reports, a search box is displayed in the table header area as well. For details on what the search box does on a given report, please refer to the associated documentation page for that report.
diff --git a/plugins/woocommerce/client/admin/docs/woocommerce.com/images/analytics-table-column-visbility.png b/plugins/woocommerce/client/admin/docs/woocommerce.com/images/analytics-table-column-visibility.png
similarity index 100%
rename from plugins/woocommerce/client/admin/docs/woocommerce.com/images/analytics-table-column-visbility.png
rename to plugins/woocommerce/client/admin/docs/woocommerce.com/images/analytics-table-column-visibility.png
diff --git a/plugins/woocommerce/client/blocks/assets/js/atomic/blocks/product-elements/price/edit.tsx b/plugins/woocommerce/client/blocks/assets/js/atomic/blocks/product-elements/price/edit.tsx
index 979bff00767..3de78f314eb 100644
--- a/plugins/woocommerce/client/blocks/assets/js/atomic/blocks/product-elements/price/edit.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/atomic/blocks/product-elements/price/edit.tsx
@@ -17,8 +17,8 @@ import { useProduct } from '@woocommerce/entities';
import Block from './block';
import { useIsDescendentOfSingleProductTemplate } from '../shared/use-is-descendent-of-single-product-template';
-type UnsupportedAligments = 'wide' | 'full';
-type AllowedAlignments = Exclude< BlockAlignment, UnsupportedAligments >;
+type UnsupportedAlignments = 'wide' | 'full';
+type AllowedAlignments = Exclude< BlockAlignment, UnsupportedAlignments >;
interface BlockAttributes {
textAlign?: AllowedAlignments;
diff --git a/plugins/woocommerce/client/blocks/assets/js/atomic/blocks/product-elements/summary/block.tsx b/plugins/woocommerce/client/blocks/assets/js/atomic/blocks/product-elements/summary/block.tsx
index 482e569d146..34d236abf98 100644
--- a/plugins/woocommerce/client/blocks/assets/js/atomic/blocks/product-elements/summary/block.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/atomic/blocks/product-elements/summary/block.tsx
@@ -165,7 +165,7 @@ const Block = ( props: BlockProps ): JSX.Element | null => {
};
export default ( props: BlockProps ) => {
- // It is necessary because this block has to support serveral contexts:
+ // It is necessary because this block has to support several contexts:
// - Inside `All Products Block` -> `withProductDataContext` HOC
// - Inside `Products Block` -> Gutenberg Context
// - Inside `Single Product Template` -> Gutenberg Context
diff --git a/plugins/woocommerce/client/blocks/assets/js/base/components/cart-checkout/shipping-rates-control-package/package-rates.tsx b/plugins/woocommerce/client/blocks/assets/js/base/components/cart-checkout/shipping-rates-control-package/package-rates.tsx
index 8c2ad6ebdfe..530b8b898fe 100644
--- a/plugins/woocommerce/client/blocks/assets/js/base/components/cart-checkout/shipping-rates-control-package/package-rates.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/base/components/cart-checkout/shipping-rates-control-package/package-rates.tsx
@@ -50,7 +50,7 @@ const PackageRates = ( {
onSelectRate( selectedOption );
}
// We want this to run on mount only, beware of updating it as it may cause
- // shipping rate selection to end up in inifite loop
+ // shipping rate selection to end up in infinite loop
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [] );
diff --git a/plugins/woocommerce/client/blocks/assets/js/base/components/notice-banner/docs/docs.mdx b/plugins/woocommerce/client/blocks/assets/js/base/components/notice-banner/docs/docs.mdx
index ef7ccdffea5..2cead87fee1 100644
--- a/plugins/woocommerce/client/blocks/assets/js/base/components/notice-banner/docs/docs.mdx
+++ b/plugins/woocommerce/client/blocks/assets/js/base/components/notice-banner/docs/docs.mdx
@@ -18,7 +18,7 @@ Notices are color-coded to indicate the type of message being communicated, and
### Default Notices
-By default, noices are grey and used for less important messaging.
+By default, notices are grey and used for less important messaging.
<Canvas of={ NoticeBannerStories.Default } />
diff --git a/plugins/woocommerce/client/blocks/assets/js/base/stores/woocommerce/cart.ts b/plugins/woocommerce/client/blocks/assets/js/base/stores/woocommerce/cart.ts
index e4940925b08..ecc49ad6ee2 100644
--- a/plugins/woocommerce/client/blocks/assets/js/base/stores/woocommerce/cart.ts
+++ b/plugins/woocommerce/client/blocks/assets/js/base/stores/woocommerce/cart.ts
@@ -1254,7 +1254,7 @@ const { actions } = store< Store >(
dismissible: true,
} );
- // Emmits console.error for troubleshooting.
+ // Emits console.error for troubleshooting.
// eslint-disable-next-line no-console
console.error( error );
},
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/edit.tsx b/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/edit.tsx
index 4544c183218..eae4a5ad0ed 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/edit.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/edit.tsx
@@ -16,8 +16,8 @@ import {
} from '../../form-step';
import Block from './block';
import {
- getBillingAddresssBlockTitle,
- getBillingAddresssBlockDescription,
+ getBillingAddressBlockTitle,
+ getBillingAddressBlockDescription,
} from './utils';
import { AddressFieldControls } from '../../address-field-controls';
@@ -39,11 +39,11 @@ export const Edit = ( {
if ( ! showBillingFields && ! useBillingAsShipping ) {
return null;
}
- attributes.title = getBillingAddresssBlockTitle(
+ attributes.title = getBillingAddressBlockTitle(
attributes.title,
forcedBillingAddress
);
- attributes.description = getBillingAddresssBlockDescription(
+ attributes.description = getBillingAddressBlockDescription(
attributes.description,
forcedBillingAddress
);
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/frontend.tsx b/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/frontend.tsx
index 8e4139ca5a8..9778e95f650 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/frontend.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/frontend.tsx
@@ -18,8 +18,8 @@ import Block from './block';
import attributes from './attributes';
import { useCheckoutBlockContext } from '../../context';
import {
- getBillingAddresssBlockTitle,
- getBillingAddresssBlockDescription,
+ getBillingAddressBlockTitle,
+ getBillingAddressBlockDescription,
} from './utils';
const FrontendBlock = ( {
@@ -46,12 +46,12 @@ const FrontendBlock = ( {
return null;
}
- title = getBillingAddresssBlockTitle(
+ title = getBillingAddressBlockTitle(
title,
forcedBillingAddress,
hasSelectedLocalPickup
);
- description = getBillingAddresssBlockDescription(
+ description = getBillingAddressBlockDescription(
description,
forcedBillingAddress,
hasSelectedLocalPickup
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/utils.tsx b/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/utils.tsx
index ecca705e8f5..661b37092d4 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/utils.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-billing-address-block/utils.tsx
@@ -8,7 +8,7 @@ import {
DEFAULT_FORCED_BILLING_TITLE,
} from './constants';
-export const getBillingAddresssBlockTitle = (
+export const getBillingAddressBlockTitle = (
title: string,
forcedBillingAddress: boolean,
isLocalPickup: boolean
@@ -21,7 +21,7 @@ export const getBillingAddresssBlockTitle = (
return title === DEFAULT_FORCED_BILLING_TITLE ? DEFAULT_TITLE : title;
};
-export const getBillingAddresssBlockDescription = (
+export const getBillingAddressBlockDescription = (
description: string,
forcedBillingAddress: boolean,
isLocalPickup: boolean
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-pickup-options-block/block.tsx b/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-pickup-options-block/block.tsx
index 5cb473e4cf5..3c8b4a19d00 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-pickup-options-block/block.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-pickup-options-block/block.tsx
@@ -177,7 +177,7 @@ const Block = () => {
selectShippingRate( selectedOption );
}
// We want this to run on mount only, beware of updating it as it may cause
- // shipping rate selection to end up in inifite loop
+ // shipping rate selection to end up in infinite loop
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [] );
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-pickup-options-block/style.scss b/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-pickup-options-block/style.scss
index 161623b62b9..28a74257321 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-pickup-options-block/style.scss
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-pickup-options-block/style.scss
@@ -78,7 +78,7 @@
.wc-block-editor-components-block-icon {
fill: currentColor;
- // Pixel perfect alignement needed as internal padding of the SVG
+ // Pixel perfect alignment needed as internal padding of the SVG
// is inconsistent (top one bigger that the bottom one).
margin-left: -3px;
}
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/migration-products-to-product-collection/migration-from-products-to-product-collection.ts b/plugins/woocommerce/client/blocks/assets/js/blocks/migration-products-to-product-collection/migration-from-products-to-product-collection.ts
index 2e3ce9068af..8e939860e23 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/migration-products-to-product-collection/migration-from-products-to-product-collection.ts
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/migration-products-to-product-collection/migration-from-products-to-product-collection.ts
@@ -65,37 +65,37 @@ const isPostSummary: IsBlockType = ( { name, attributes } ) =>
'woocommerce/product-query/product-summary';
const transformPostTemplate: TransformBlock = ( block, innerBlocks ) => {
- const { __woocommerceNamespace, className, layout, ...restAttrributes } =
+ const { __woocommerceNamespace, className, layout, ...restAttributes } =
block.attributes;
return createBlock(
'woocommerce/product-template',
- restAttrributes,
+ restAttributes,
innerBlocks
);
};
const transformPostTitle: TransformBlock = ( block, innerBlocks ) => {
- const { __woocommerceNamespace, ...restAttrributes } = block.attributes;
+ const { __woocommerceNamespace, ...restAttributes } = block.attributes;
return createBlock(
'core/post-title',
{
__woocommerceNamespace:
'woocommerce/product-collection/product-title',
- ...restAttrributes,
+ ...restAttributes,
},
innerBlocks
);
};
const transformPostSummary: TransformBlock = ( block, innerBlocks ) => {
- const { __woocommerceNamespace, ...restAttrributes } = block.attributes;
+ const { __woocommerceNamespace, ...restAttributes } = block.attributes;
return createBlock(
'core/post-excerpt',
{
__woocommerceNamespace:
'woocommerce/product-collection/product-summary',
- ...restAttrributes,
+ ...restAttributes,
},
innerBlocks
);
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/product-collection/editor.scss b/plugins/woocommerce/client/blocks/assets/js/blocks/product-collection/editor.scss
index 86ea6382c3f..b9e2938cbec 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/product-collection/editor.scss
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/product-collection/editor.scss
@@ -158,7 +158,7 @@ $max-button-width: calc(100% / #{$max-button-columns});
pointer-events: none;
.wc-block-next-previous-buttons__button {
- // Since blocks are overlaping here, we need to override the pointer-events: none.
+ // Since blocks are overlapping here, we need to override the pointer-events: none.
// This is the way to make the block selectable in editor.
pointer-events: auto;
}
diff --git a/plugins/woocommerce/client/blocks/assets/js/editor-components/incompatible-extension-notice/storage.ts b/plugins/woocommerce/client/blocks/assets/js/editor-components/incompatible-extension-notice/storage.ts
index 8895b3b6ce6..d650a300652 100644
--- a/plugins/woocommerce/client/blocks/assets/js/editor-components/incompatible-extension-notice/storage.ts
+++ b/plugins/woocommerce/client/blocks/assets/js/editor-components/incompatible-extension-notice/storage.ts
@@ -73,7 +73,7 @@ export const readDismissalsFromBeforeScoping = (): unknown[] => {
return parsed;
}
} catch {
- // Unparseable, handled the same way as a shape we don't recognise.
+ // Unparsable, handled the same way as a shape we don't recognise.
}
// A value we can't read is not a dismissal we can honour; the log gives a
@@ -89,7 +89,7 @@ export const readDismissalsFromBeforeScoping = (): unknown[] => {
* What a notice should hand `useLocalStorageState` as its initial value.
*
* That hook falls back to the initial value both when `key` holds nothing and
- * when it holds something unparseable, and cannot tell the two apart. Only
+ * when it holds something unparsable, and cannot tell the two apart. Only
* absence may open the migration: seeding a corrupt value from the pre-scoping
* data would revive a dismissal the merchant has since replaced and hide a
* warning that is currently owed.
diff --git a/plugins/woocommerce/client/blocks/assets/js/editor-components/incompatible-extension-notice/test/storage.ts b/plugins/woocommerce/client/blocks/assets/js/editor-components/incompatible-extension-notice/test/storage.ts
index acefbe4e7b6..4a4a1d87a8d 100644
--- a/plugins/woocommerce/client/blocks/assets/js/editor-components/incompatible-extension-notice/test/storage.ts
+++ b/plugins/woocommerce/client/blocks/assets/js/editor-components/incompatible-extension-notice/test/storage.ts
@@ -117,7 +117,7 @@ describe( 'incompatible extension notice storage', () => {
} );
it.each( [
- [ 'unparseable', 'not json at all' ],
+ [ 'unparsable', 'not json at all' ],
[ 'an object', JSON.stringify( { a: 1 } ) ],
[ 'a bare string', JSON.stringify( 'ext-one' ) ],
[ 'null', JSON.stringify( null ) ],
@@ -169,7 +169,7 @@ describe( 'incompatible extension notice storage', () => {
it.each( [
[ 'a readable value', JSON.stringify( [ 'stored' ] ) ],
[ 'an empty array', JSON.stringify( [] ) ],
- [ 'something unparseable', '{not valid json' ],
+ [ 'something unparsable', '{not valid json' ],
// The case the `=== null` check exists for: an empty string is a
// write that failed, which is stored data, not an absent key.
[ 'an empty string', '' ],
diff --git a/plugins/woocommerce/client/blocks/bin/docker/wp-cli/entrypoint.sh b/plugins/woocommerce/client/blocks/bin/docker/wp-cli/entrypoint.sh
index 4cd57bb44be..fdf177e1055 100644
--- a/plugins/woocommerce/client/blocks/bin/docker/wp-cli/entrypoint.sh
+++ b/plugins/woocommerce/client/blocks/bin/docker/wp-cli/entrypoint.sh
@@ -31,7 +31,7 @@ URL="http://localhost:${WORDPRESS_PORT}"
if $(wp core is-installed);
then
- echo "Wordpress is already installed..."
+ echo "WordPress is already installed..."
else
declare -p WORDPRESS_TITLE >/dev/null
declare -p WORDPRESS_LOGIN >/dev/null
diff --git a/plugins/woocommerce/client/blocks/docs/internal-developers/testing/cart-checkout/general-flow.md b/plugins/woocommerce/client/blocks/docs/internal-developers/testing/cart-checkout/general-flow.md
index e2435b560b5..242b195c9f7 100644
--- a/plugins/woocommerce/client/blocks/docs/internal-developers/testing/cart-checkout/general-flow.md
+++ b/plugins/woocommerce/client/blocks/docs/internal-developers/testing/cart-checkout/general-flow.md
@@ -13,7 +13,7 @@ This is a general flow of the main functionality of the blocks without going too
- [ ] Create pages with Cart and Checkout blocks.
- [ ] Set the continue to checkout link your Cart settings to the Checkout page you created.
-- [ ] In Woocommerce -> Settings -> Advanced, set the new pages to your default Cart and Checkout.
+- [ ] In WooCommerce -> Settings -> Advanced, set the new pages to your default Cart and Checkout.
- [ ] Add some products to your cart.
- [ ] Mix in a limited stock product or a coupon.
- [ ] Continue to checkout.
diff --git a/plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/1120.md b/plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/1120.md
index 2a26323bc08..ec3af9a7a3e 100644
--- a/plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/1120.md
+++ b/plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/1120.md
@@ -40,10 +40,10 @@ Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.
2. Convert the legacy order confirmation block to individual blocks using the "transform into blocks" button. Confirm the new blocks appear.
3. Focus on each new block and confirm there is an appropriate icon, title, description, and style controls for each. Play around with text colours, background colours, and any other options available to ensure changes apply in the editor.
4. Save changes.
-6. Go to the store frontend, add some items to the cart, and place an order.
-7. Confirm the confirmation page matches the styling you applied and all blocks are present. You can leave this tab open for testing.
-8. Edit the order confirmation page again. Remove some blocks, for example headings.
-9. Save changes, then refresh the confirmation page on the frontend. Confirm changes have applied.
+5. Go to the store frontend, add some items to the cart, and place an order.
+6. Confirm the confirmation page matches the styling you applied and all blocks are present. You can leave this tab open for testing.
+7. Edit the order confirmation page again. Remove some blocks, for example headings.
+8. Save changes, then refresh the confirmation page on the frontend. Confirm changes have applied.
#### Downloadable Products
@@ -62,20 +62,20 @@ Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.

-5. Close all tabs and log out from your store.
-6. Place a new order as a guest. Confirm the order confirmation page shows some order details, but hides email address, payment method, and the full billing/shipping address. This is the limited view that guests can see.
-7. Leave the confirmation page open. Copy the page address.
-8. Open up a new incognito browser window, or better yet, using a different browser. Paste the URL from earlier.
-9. You should still see details if within 10 minutes of placing the order.
-10. Wait 10 minutes then refresh the page.
-11. Confirm you see a message asking you to either login or fill out the form to see order details as follows:
+1. Close all tabs and log out from your store.
+2. Place a new order as a guest. Confirm the order confirmation page shows some order details, but hides email address, payment method, and the full billing/shipping address. This is the limited view that guests can see.
+3. Leave the confirmation page open. Copy the page address.
+4. Open up a new incognito browser window, or better yet, using a different browser. Paste the URL from earlier.
+5. You should still see details if within 10 minutes of placing the order.
+6. Wait 10 minutes then refresh the page.
+7. Confirm you see a message asking you to either login or fill out the form to see order details as follows:

-12. Enter the incorrect email. See a notice rejecting the request "We were unable to verify the email address you provided. Please try again.".
-13. Enter the correct email. See limited order details.
-14. Edit the URL of the page to remove the order key. For example, `checkout/order-received/1772/?key=wc_order_GAE4XxQ4k7E77` would become `checkout/order-received/1772`
-15. You should no longer be able to provide your email and see order details. The key is required. You will see a generic message only.
+ 1. Enter the incorrect email. See a notice rejecting the request "We were unable to verify the email address you provided. Please try again."
+ 2. Enter the correct email. See limited order details.
+ 3. Edit the URL of the page to remove the order key. For example, `checkout/order-received/1772/?key=wc_order_GAE4XxQ4k7E77` would become `checkout/order-received/1772`
+ 4. You should no longer be able to provide your email and see order details. The key is required. You will see a generic message only.

@@ -86,11 +86,11 @@ Before testing, take note of the frontend appearance of the cart/checkout pages.
1. Using a **non-block** based theme such as Storefront, ensure your existing cart/checkout is unchanged as a result of testing.
2. Use a **block** based theme such as Twenty Twenty Three
-3. Go to Appearance > Editor > Templates, navigate to both `Page: Cart` and `Page: Checkout`. For both, click the three dots in the inspector and "revert customisations". This will remove any existing template customisations or past migration.
+3. Go to Appearance > Editor > Templates, navigate to both `Page: Cart` and `Page: Checkout`. For both, click the three dots in the inspector and "revert customizations". This will remove any existing template customizations or past migration.
4. Visit the cart/checkout pages on the frontend and ensure the page contents matches the actual cart/checkout page content.
5. Edit the contents of the checkout **page**, not the template, either from Admin > Pages or Admin > Appearance > Editor > Pages. After saving, confirm the changes are shown on the frontend.
6. Go to Appearance > Editor > Templates and edit the Page: Checkout template. Edit something in the **template**. Save and confirm the frontend shows your change. When adding content to the template, make sure you're not within **Group > Checkout Page**, as this will save to the page not the template. Insert something after or outside of that group.
-7. Go to Appearance > Editor > Templates and edit the Page: Checkout template. Click the three dots in the side bar and "revert customisations". Ensure the frontend shows the same default template again without your changes.
+7. Go to Appearance > Editor > Templates and edit the Page: Checkout template. Click the three dots in the side bar and "revert customizations". Ensure the frontend shows the same default template again without your changes.
8. Switch to a block based theme with a custom cart/checkout template. For example [FotaWP](https://en-gb.wordpress.org/themes/fotawp/)
9. After activating the theme, view the checkout page. You should see a custom checkout template (this is from the theme).
10. Switch back to Twenty Twenty Three—the previous template will be restored.
@@ -98,16 +98,16 @@ Before testing, take note of the frontend appearance of the cart/checkout pages.
### Classic Shortcode Block
1. Delete your main cart and checkout pages
-3. Go to WooCommerce > Status > Tools > and use the tool to recreate the default woocommerce pages
-4. Now if you go to the newly recreated Cart/Checkout pages you'll see a placeholder block which when focussed/clicked will look something like this (copy may differ):
+2. Go to WooCommerce > Status > Tools > and use the tool to recreate the default woocommerce pages
+3. Now if you go to the newly recreated Cart/Checkout pages you'll see a placeholder block which when focussed/clicked will look something like this (copy may differ):

-5. Ensure you see a shortcode cart/checkout on the frontend still.
-6. Go to Appearance > Editor > Templates and then Page: Cart and Page: Checkout. Both should show the placeholder.
-7. Go to Appearance > Editor > Pages and then the cart/checkout pages. Both should show the placeholder.
-8. Edit the page again. Click the classic shortcode placeholder then click the 'convert to blocks' button. Save and view the frontend. You should now see checkout blocks instead of the page content.
-9. Likewise, viewing the Templates + Pages in site editor should show the blocks.
+1. Ensure you see a shortcode cart/checkout on the frontend still.
+2. Go to Appearance > Editor > Templates and then Page: Cart and Page: Checkout. Both should show the placeholder.
+3. Go to Appearance > Editor > Pages and then the cart/checkout pages. Both should show the placeholder.
+4. Edit the page again. Click the classic shortcode placeholder then click the 'convert to blocks' button. Save and view the frontend. You should now see checkout blocks instead of the page content.
+5. Likewise, viewing the Templates + Pages in site editor should show the blocks.
### Page Permalink Management
@@ -125,9 +125,9 @@ Before testing, take note of the frontend appearance of the cart/checkout pages.
### Developer testing
-1. Create a fresh instance of JN with previous version of Woocommerce blocks and save some customisations to your cart/checkout page tenplates.
+1. Create a fresh instance of JN with previous version of WooCommerce blocks and save some customizations to your cart/checkout page tenplates.
2. Install and activate the zip file for this release.
-3. You should now see only one "Page: Checkout" template, and it should contain the customisations you previously made to checkout.
+3. You should now see only one "Page: Checkout" template, and it should contain the customizations you previously made to checkout.
### Fix: Password Protection not respected on single product template [#10999](https://github.com/woocommerce/woocommerce-blocks/pull/10999)
@@ -142,13 +142,13 @@ Before testing, take note of the frontend appearance of the cart/checkout pages.
2. Go to the Checkout block page, and add an address for which you don't have a shipping zone defined without changing the selected shipping method.
3. Confirm local pickup is selected as a shipping method for the address, and shipping is not available for the given address.
-<img width="543" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/11503784/f807a8b7-f89c-401b-9aa0-7f696c0fa183">
+
-4. In another tab, open shipping zones and add a new rate to your current zone.
-5. Refresh checkout.
-6. Confirm local pickup is selected as a shipping method for the address, and shipping is also available for the given address.
+1. In another tab, open shipping zones and add a new rate to your current zone.
+2. Refresh checkout.
+3. Confirm local pickup is selected as a shipping method for the address, and shipping is also available for the given address.
-<img width="541" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/11503784/82ca5ebc-27a7-4b5b-92a1-0b30478bd5ef">
+
### Product Collection: Transfer layout options from Toolbar to Inspector controls [#10922](https://github.com/woocommerce/woocommerce-blocks/pull/10922)
@@ -169,11 +169,11 @@ Before testing, take note of the frontend appearance of the cart/checkout pages.

-3. Change the layout from 'Grid' to 'Stack'. Open the settings menu again to find the 'RESET' button now visible, as shown here:
+1. Change the layout from 'Grid' to 'Stack'. Open the settings menu again to find the 'RESET' button now visible, as shown here:

-4. Verify that clicking the 'RESET' button changes the layout back to 'Grid'. Similarly, clicking the 'Reset all' button should revert the layout to 'Grid'.
+1. Verify that clicking the 'RESET' button changes the layout back to 'Grid'. Similarly, clicking the 'Reset all' button should revert the layout to 'Grid'.
### Single Product: Fix the Align setting [#10977](https://github.com/woocommerce/woocommerce-blocks/pull/10977)
@@ -199,8 +199,8 @@ Before testing, take note of the frontend appearance of the cart/checkout pages.
6. Make sure there are no bullet points before the products
| Before | After |
-| ------ | ----- |
-|<img alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/20098064/b7cb7ac7-5f7d-4db0-b5bf-ccd1949eb767">|<img alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/20098064/5d3a07a7-3403-47dc-ae5d-a39243c9777b">
+| --- | --- |
+|  |  |
### Add custom regex for validating Nicaraguan postal codes [#10928](https://github.com/woocommerce/woocommerce-blocks/pull/10928)
@@ -220,7 +220,7 @@ Before testing, take note of the frontend appearance of the cart/checkout pages.
### Add pattern chooser in Product Collection [#10876](https://github.com/woocommerce/woocommerce-blocks/pull/10876)
1. Go to Editor
-2. Add Product Collection blocks with different configiurations, e.g.
+2. Add Product Collection blocks with different configurations, e.g.
- one that inherits query from template
- one that has "On Sale" filter enabled with limited number of products per page
- one that shows handpicked products
@@ -252,7 +252,7 @@ Before testing, take note of the frontend appearance of the cart/checkout pages.
#### WooExpress: Fix Checkout and Cart Blocks Editor Crash [#11024](https://github.com/woocommerce/woocommerce-blocks/pull/11024)
-You'll need a WooExpress site. You can create one for free from [here](https://woocommerce.com/express/).
+You'll need a WooExpress site. You can create a free [WooExpress site](https://woocommerce.com/express/).
To upload Woo Blocks ZIP file, you can either upgrade your WooExpress site or use the CLI.
@@ -261,27 +261,27 @@ To upload Woo Blocks ZIP file, you can either upgrade your WooExpress site or us
1. Go to `Appearance -> Editor -> Templates -> Checkout` (or Cart)
2. Clear customizations of the Checkout (or Cart) template if necessary and reload the page
-<img width="355" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/14235870/9d66bbd7-d62e-418e-87bd-93cec9141ff9">
+
-3. Click on `Edit` to access the template editor
+1. Click on `Edit` to access the template editor
-<img width="355" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/14235870/fe676b09-c7fb-495b-8297-05d6f231e87d">
+
-4. Within the Checkout (or Cart) template editor, open the `List View` and try to delete the `Gift Card Form` or the `Gift Card Totals` Blocks. Untick `Prevent removal` under the `Unlock` option:
+1. Within the Checkout (or Cart) template editor, open the `List View` and try to delete the `Gift Card Form` or the `Gift Card Totals` Blocks. Untick `Prevent removal` under the `Unlock` option:
-<img width="500" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/14235870/fa30d66d-007f-4900-8057-46ee338535e8">
+
-<img width="500" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/14235870/94c45576-e74d-4cdf-a623-0a91a85b2462">
+
-5. Ensure the `Gift Card Form` (or `Gift Card Totals`) Block isn't deleted (It's actually being reinserted each time we click on `Delete)`)
+1. Ensure the `Gift Card Form` (or `Gift Card Totals`) Block isn't deleted (It's actually being reinserted each time we click on `Delete`).
##### Test removing the Checkout (or Cart) Blocks in the Editor
1. Try to delete the Checkout (or Cart) Block
-<img width="563" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/14235870/4a403b80-f314-4df0-8c13-7d33907f3be0">
+
-2. Ensure the Checkout (or Cart) Block is successfully deleted
+1. Ensure the Checkout (or Cart) Block is successfully deleted
#### Store Customization > Schedule an action to update the patterns content whenever the business description is changed [#10956](https://github.com/woocommerce/woocommerce-blocks/pull/10956)
@@ -289,40 +289,40 @@ To upload Woo Blocks ZIP file, you can either upgrade your WooExpress site or us
2. From your dashboard, head over to WooCommerce > Settings > Advanced > Features
3. Fill out a description for your business and save
-<img width="1044" alt="Screenshot 2023-09-16 at 09 22 29" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/da3e8fc8-9e23-49a8-90ff-06d217192ece">
+
-5. Now head over to Tools > Scheduled Actions
-6. Search for the woocommerce_update_patterns_content hook
-7. Make sure the action was successfully scheduled:
+1. Now head over to Tools > Scheduled Actions
+2. Search for the woocommerce_update_patterns_content hook
+3. Make sure the action was successfully scheduled:
-<img width="1032" alt="Screenshot 2023-09-16 at 09 27 23" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/38efee14-bfc4-486c-8dcc-373963562603">
+
-8. If the status is still Pending when you check, click on Run and ensure it is successfully executed. If the status is already Complete, no action is required as the process already finished successfully.
-9. Check your error log and make sure you don't see any PHP errors.
+1. If the status is still Pending when you check, click on Run and ensure it is successfully executed. If the status is already Complete, no action is required as the process already finished successfully.
+2. Check your error log and make sure you don't see any PHP errors.
#### Store Customization > Create a new endpoint within Store API for updating patterns with AI-generated content [#10881](https://github.com/woocommerce/woocommerce-blocks/pull/10881)
-1. Create a new [JN install](https://jurassic.ninja/) with both Jetpack and Woocommerce installed and activated.
+1. Create a new [JN install](https://jurassic.ninja/) with both Jetpack and WooCommerce installed and activated.
2. In your wp-admin, you should see the following section for Jetpack:
-<img width="1803" alt="Screenshot 2023-09-11 at 18 55 38" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/fc804759-f724-4fa2-829d-7bfd441962ec">
+
-3. Click on "Set up Jetpack" and make sure the connection is successful:
+1. Click on "Set up Jetpack" and make sure the connection is successful:
-<img width="1994" alt="Screenshot 2023-09-11 at 18 58 30" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/661ee4c5-a0ac-40fd-9e5e-835a0e4c1cb7">
+
-4. Using [Postman](https://www.postman.com/) or any other equivalent app, make a POST request to the following endpoint: `wp-json/wc/store/patterns` (e.g. `https://outside-dwelling.jurassic.ninja/wp-json/wc/store/patterns`). Since you are not authenticated, you should get the following error:
+1. Using [Postman](https://www.postman.com/) or any other equivalent app, make a POST request to the following endpoint: `wp-json/wc/store/patterns` (e.g. `https://outside-dwelling.jurassic.ninja/wp-json/wc/store/patterns`). Since you are not authenticated, you should get the following error:
-<img width="748" alt="Screenshot 2023-09-13 at 16 25 45" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/fee21120-392a-4c7f-abe7-e70a3999ff32">
+
-5. Now, we need to make sure the request works for admin users: you can do so by adding your credentials via Postman directly or, alternatively:
+1. Now, we need to make sure the request works for admin users: you can do so by adding your credentials via Postman directly or, alternatively:
- From your admin screen, click on Tools > Plugin editor:
-<img width="337" alt="Screenshot 2023-09-11 at 18 34 23" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/c353bd13-bf00-4bc8-93d6-d827ca99997f">
+
- Select the WooCommerce Blocks plugin and add the following within your woocommerce-blocks/woocommerce-gutenberg-products-block.php file:
@@ -344,7 +344,7 @@ add_action( 'admin_init', 'connect_to_endpoint' );
- Now access your JN install via SSH (you can copy the command for access over here:)
-<img width="346" alt="Screenshot 2023-09-11 at 18 38 44" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/419f338f-d203-4bec-8f78-4589d5ad3ad2">
+
- Head over to your wp-content directory and tail the debug.log file. Example:
@@ -357,4 +357,4 @@ tail -f debug.log
- Go back to your terminal and confirm that you can see the following response:
-<img width="475" alt="Screenshot 2023-09-13 at 16 43 52" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/95917fdf-c55d-457a-a4ed-e3f08a1179d3">
+
diff --git a/plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/690.md b/plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/690.md
index 0f85ba0bc62..6efb8e942ae 100644
--- a/plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/690.md
+++ b/plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/690.md
@@ -32,7 +32,7 @@ Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.
### FSE: Enable Mini Cart template-parts only for experimental builds. ([5606](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5606))
-1. Using Wordpress 5.9, select a block theme e.g. TT1 Blocks.
+1. Using WordPress 5.9, select a block theme e.g. TT1 Blocks.
2. Open Appearance > Editor > Templates Parts.
3. Check that Mini Cart template is NOT visible.
diff --git a/plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/963.md b/plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/963.md
index de101bb3fd9..275477353bb 100644
--- a/plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/963.md
+++ b/plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/963.md
@@ -7,16 +7,16 @@ Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.
### Fix the Checkout Blocks "Payment Options" settings crash in the editor. ([8535](https://github.com/woocommerce/woocommerce-blocks/pull/8535))
-1. Install and enable an incompatible payment gateway plugin with the `Cart` & `Checkout` Blocks. (e.g., [IDPay Payment Gateway for Woocommerce](https://wordpress.org/plugins/woo-idpay-gateway/))
+1. Install and enable an incompatible payment gateway plugin with the `Cart` & `Checkout` Blocks. (e.g., [IDPay Payment Gateway for WooCommerce](https://wordpress.org/plugins/woo-idpay-gateway/))
2. Create a new page and add the `Checkout` Block
3. Select the Checkout Block or any of its Inner Blocks (except for the `Payment Options` Inner Block). Ensure our incompatible payment gateway (e.g., IDPay) is listed under the incompatible gateways notice:
-<img width="500" alt="image" src="https://user-images.githubusercontent.com/14235870/221174704-1d12e2bc-6c6c-4089-a2d2-a7bedc7f55c3.png">
+
-4. Select the `Payment Options` Inner Block. Ensure its settings are correctly displayed, the incompatible gateways notice is showing and our incompatible payment Gateway is highlighted under `Settings -> Block -> Methods`
+1. Select the `Payment Options` Inner Block. Ensure its settings are correctly displayed, the incompatible gateways notice is showing and our incompatible payment Gateway is highlighted under `Settings -> Block -> Methods`
-<img width="500" alt="image" src="https://user-images.githubusercontent.com/14235870/221178227-e4e12f08-dd88-4aac-824c-3990bde13a89.png">
+
| Before | After |
-| ------ | ----- |
-| <img width="1874" alt="image" src="https://user-images.githubusercontent.com/14235870/221171831-6245b687-a377-4730-92ab-8710360ee060.png"> | <img width="1208" alt="image" src="https://user-images.githubusercontent.com/14235870/221178227-e4e12f08-dd88-4aac-824c-3990bde13a89.png"> |
+| --- | --- |
+|  |  |
diff --git a/plugins/woocommerce/client/blocks/packages/public-api/block-data/cart/index.ts b/plugins/woocommerce/client/blocks/packages/public-api/block-data/cart/index.ts
index dd636202e85..1ab93bf2dfb 100644
--- a/plugins/woocommerce/client/blocks/packages/public-api/block-data/cart/index.ts
+++ b/plugins/woocommerce/client/blocks/packages/public-api/block-data/cart/index.ts
@@ -77,7 +77,7 @@ window.addEventListener( 'load', () => {
// Pushes changes whenever the store is updated.
subscribe( pushChanges, store );
-// Emmits event to sync iAPI store.
+// Emits event to sync iAPI store.
let previousCart: object | null = null;
subscribe( () => {
const cartData = select( STORE_KEY ).getCartData();
diff --git a/plugins/woocommerce/client/blocks/packages/public-api/block-data/cart/utils.ts b/plugins/woocommerce/client/blocks/packages/public-api/block-data/cart/utils.ts
index 2ed65da198b..152d632ea89 100644
--- a/plugins/woocommerce/client/blocks/packages/public-api/block-data/cart/utils.ts
+++ b/plugins/woocommerce/client/blocks/packages/public-api/block-data/cart/utils.ts
@@ -149,7 +149,7 @@ export const setIsCustomerDataDirty = debounce(
/**
* Sets whether it should trigger the event to sync with the Interactivity API
- * store. It's used to prevent emiting the `wc-blocks_store_sync_required`
+ * store. It's used to prevent emitting the `wc-blocks_store_sync_required`
* event and causing an infinite loop.
*/
let triggerStoreSyncEvent = true;
diff --git a/plugins/woocommerce/client/blocks/packages/public-api/blocks-registry/payment-methods/express-payment-method-config.ts b/plugins/woocommerce/client/blocks/packages/public-api/blocks-registry/payment-methods/express-payment-method-config.ts
index 38ab4568d2b..35c8510a8c9 100644
--- a/plugins/woocommerce/client/blocks/packages/public-api/blocks-registry/payment-methods/express-payment-method-config.ts
+++ b/plugins/woocommerce/client/blocks/packages/public-api/blocks-registry/payment-methods/express-payment-method-config.ts
@@ -35,7 +35,7 @@ export default class ExpressPaymentMethodConfig
typeof config.name === 'string'
? config.name.replace( /[_-]/g, ' ' )
: config.name;
- const trimedDescription =
+ const trimmedDescription =
typeof config?.description === 'string' &&
config.description.length > 130
? config.description.slice( 0, 130 ) + '...'
@@ -44,7 +44,7 @@ export default class ExpressPaymentMethodConfig
ExpressPaymentMethodConfig.assertValidConfig( config );
this.name = config.name;
this.title = config.title || readableName;
- this.description = trimedDescription || '';
+ this.description = trimmedDescription || '';
this.gatewayId = config.gatewayId || '';
this.content = config.content;
this.edit = config.edit;
diff --git a/plugins/woocommerce/includes/admin/class-wc-admin-addons.php b/plugins/woocommerce/includes/admin/class-wc-admin-addons.php
index 4b7ff074fd7..33dbe25047a 100644
--- a/plugins/woocommerce/includes/admin/class-wc-admin-addons.php
+++ b/plugins/woocommerce/includes/admin/class-wc-admin-addons.php
@@ -138,7 +138,7 @@ class WC_Admin_Addons {
* Add in-app-purchase URL params to link.
*
* Adds various url parameters to a url to support a streamlined
- * flow for obtaining and setting up WooCommerce extensons.
+ * flow for obtaining and setting up WooCommerce extensions.
*
* @param string $url Destination URL.
*/
@@ -212,7 +212,7 @@ class WC_Admin_Addons {
/**
* We're displaying page=wc-addons and page=wc-addons§ion=helper as two separate pages.
- * When we're on those pages, add body classes to distinguishe them.
+ * When we're on those pages, add body classes to distinguish them.
*
* @param string $admin_body_class Unfiltered body class.
*
diff --git a/plugins/woocommerce/includes/class-wc-brands.php b/plugins/woocommerce/includes/class-wc-brands.php
index c2496549b1c..0bd01059e5a 100644
--- a/plugins/woocommerce/includes/class-wc-brands.php
+++ b/plugins/woocommerce/includes/class-wc-brands.php
@@ -350,7 +350,7 @@ class WC_Brands {
* Handles template usage so that we can use our own templates instead of the themes.
*
* Templates are in the 'templates' folder. woocommerce looks for theme
- * overides in /theme/woocommerce/ by default
+ * overrides in /theme/woocommerce/ by default
*
* For beginners, it also looks for a woocommerce.php template first. If the user adds
* this to the theme (containing a woocommerce() inside) this will be used for all
diff --git a/plugins/woocommerce/includes/class-wc-cart-session.php b/plugins/woocommerce/includes/class-wc-cart-session.php
index 0e7ff423508..a98a69a28a4 100644
--- a/plugins/woocommerce/includes/class-wc-cart-session.php
+++ b/plugins/woocommerce/includes/class-wc-cart-session.php
@@ -578,8 +578,8 @@ final class WC_Cart_Session {
$cart = array();
}
- $inital_cart_size = count( $cart );
- $order_items = $order->get_items();
+ $initial_cart_size = count( $cart );
+ $order_items = $order->get_items();
foreach ( $order_items as $item ) {
$product_id = (int) apply_filters( 'woocommerce_add_to_cart_product_id', $item->get_product_id() );
@@ -663,7 +663,7 @@ final class WC_Cart_Session {
$num_items_in_cart = count( $cart );
$num_items_in_original_order = count( $order_items );
- $num_items_added = $num_items_in_cart - $inital_cart_size;
+ $num_items_added = $num_items_in_cart - $initial_cart_size;
if ( $num_items_in_original_order > $num_items_added ) {
wc_add_notice(
diff --git a/plugins/woocommerce/includes/class-wc-rest-authentication.php b/plugins/woocommerce/includes/class-wc-rest-authentication.php
index 07a08d0bf53..afa8580f858 100644
--- a/plugins/woocommerce/includes/class-wc-rest-authentication.php
+++ b/plugins/woocommerce/includes/class-wc-rest-authentication.php
@@ -435,7 +435,7 @@ class WC_REST_Authentication {
if ( function_exists( 'getallheaders' ) ) {
$headers = getallheaders();
- // Check for the authoization header case-insensitively.
+ // Check for the authorization header case-insensitively.
foreach ( $headers as $key => $value ) {
if ( 'authorization' === strtolower( $key ) ) {
return $value;
diff --git a/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php b/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php
index d65094e81ae..e3e95d8af3e 100644
--- a/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php
+++ b/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php
@@ -940,7 +940,7 @@ class WC_Shop_Customizer {
}
/**
- * Weather or not the checkout page contains the Checkout block.
+ * Whether or not the checkout page contains the Checkout block.
*
* @return bool
*/
diff --git a/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php b/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php
index 3d4c00a04aa..a8b976dc7a8 100644
--- a/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php
+++ b/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php
@@ -1041,7 +1041,7 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement
}
}
- // Handle custom orderby paramers.
+ // Handle custom orderby parameters.
if ( 'total' === $wp_query_args['orderby'] ) {
$wp_query_args['orderby'] = 'meta_value_num';
$wp_query_args['meta_key'] = '_order_total'; // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_key
diff --git a/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php b/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php
index ef31e0b581e..eaa0629ad55 100644
--- a/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php
+++ b/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php
@@ -589,7 +589,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
* @return array
*/
public function maybe_remove_fields( $form_fields ) {
- // Remove legacy setting fiels when using Orders v2.
+ // Remove legacy setting fields when using Orders v2.
if ( $this->should_use_orders_v2() ) {
foreach ( $form_fields as $key => $field ) {
if ( isset( $field['is_legacy'] ) && $field['is_legacy'] ) {
diff --git a/plugins/woocommerce/includes/react-admin/class-experimental-abtest.php b/plugins/woocommerce/includes/react-admin/class-experimental-abtest.php
index 6c873b936ae..7dd32d8c52f 100644
--- a/plugins/woocommerce/includes/react-admin/class-experimental-abtest.php
+++ b/plugins/woocommerce/includes/react-admin/class-experimental-abtest.php
@@ -68,7 +68,7 @@ final class Experimental_Abtest {
private $platform = 'woocommerce';
/**
- * Whether trcking consent is given.
+ * Whether tracking consent is given.
*
* @var bool
*/
diff --git a/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php b/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php
index 98de4761783..b4a7069e662 100644
--- a/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php
+++ b/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php
@@ -1977,7 +1977,7 @@ class WC_REST_Products_Controller extends WC_REST_Products_V2_Controller {
$params = parent::get_collection_params();
$params['categories'] = array(
- 'description' => __( 'Limit result set to specific product categorie ids.', 'woocommerce' ),
+ 'description' => __( 'Limit result set to specific product category ids.', 'woocommerce' ),
'type' => 'array',
'items' => array(
'type' => 'integer',
diff --git a/plugins/woocommerce/includes/wc-brands-functions.php b/plugins/woocommerce/includes/wc-brands-functions.php
index 2c23ddca9f6..1f58e336350 100644
--- a/plugins/woocommerce/includes/wc-brands-functions.php
+++ b/plugins/woocommerce/includes/wc-brands-functions.php
@@ -77,7 +77,7 @@ function wc_get_brand_thumbnail_image( $brand, $size = '' ) {
* Retrieves product's brands.
*
* @param int $post_id Post ID (default: 0).
- * @param string $sep Seperator (default: ').
+ * @param string $sep Separator (default: ').
* @param string $before Before item (default: '').
* @param string $after After item (default: '').
* @return array List of terms
@@ -130,7 +130,7 @@ if ( ! function_exists( 'get_brands' ) ) {
* Polyfill for get_brands.
*
* @param int $post_id Post ID (default: 0).
- * @param string $sep Seperator (default: ').
+ * @param string $sep Separator (default: ').
* @param string $before Before item (default: '').
* @param string $after After item (default: '').
* @return array List of terms
diff --git a/plugins/woocommerce/includes/wc-core-functions.php b/plugins/woocommerce/includes/wc-core-functions.php
index 82403651ca9..cdbcc363972 100644
--- a/plugins/woocommerce/includes/wc-core-functions.php
+++ b/plugins/woocommerce/includes/wc-core-functions.php
@@ -2132,7 +2132,7 @@ function wc_list_pluck( $list, $callback_or_field, $index_key = null ) {
* Get permalink settings for things like products and taxonomies.
*
* As of 3.3.0, the permalink settings are stored to the option instead of
- * being blank and inheritting from the locale. This speeds up page loading
+ * being blank and inheriting from the locale. This speeds up page loading
* times by negating the need to switch locales on each page load.
*
* This is more inline with WP core behavior which does not localize slugs.
diff --git a/plugins/woocommerce/includes/wc-formatting-functions.php b/plugins/woocommerce/includes/wc-formatting-functions.php
index cc24a326aea..96fb23742ff 100644
--- a/plugins/woocommerce/includes/wc-formatting-functions.php
+++ b/plugins/woocommerce/includes/wc-formatting-functions.php
@@ -378,7 +378,7 @@ function wc_format_coupon_code( $value ) {
*
* Uses sanitize_post_field since coupon codes are stored as post_titles - the sanitization and escaping must match.
*
- * Due to the unfiltered_html captability that some (admin) users have, we need to account for slashes.
+ * Due to the unfiltered_html capability that some (admin) users have, we need to account for slashes.
*
* The html_entity_decode() call handles coupon codes that contain special characters like ampersands (&), quotes ("),
* and other HTML entities. Without this decoding step, coupon codes with special characters would fail to match
@@ -1202,7 +1202,7 @@ function wc_format_product_short_description( $content ) {
}
/**
- * Formats curency symbols when saved in settings.
+ * Formats currency symbols when saved in settings.
*
* @codeCoverageIgnore
* @param string $value Option value.
diff --git a/plugins/woocommerce/includes/wc-template-functions.php b/plugins/woocommerce/includes/wc-template-functions.php
index dfc7bfdca9a..766ac694193 100644
--- a/plugins/woocommerce/includes/wc-template-functions.php
+++ b/plugins/woocommerce/includes/wc-template-functions.php
@@ -4791,7 +4791,7 @@ function wc_update_store_notice_visible_on_theme_switch( $old_name, $old_theme )
}
} elseif ( $old_theme->is_block_theme() && ! wp_is_block_theme() ) {
/*
- * When switching from a block theme to a clasic theme, check if we have set the option to
+ * When switching from a block theme to a classic theme, check if we have set the option to
* re-enable the store notice. If so, re-enable it.
*/
$enable_store_notice_in_classic_theme = wc_string_to_bool( get_option( $enable_store_notice_in_classic_theme_option, 'no' ) );
diff --git a/plugins/woocommerce/includes/wccom-site/class-wc-wccom-site.php b/plugins/woocommerce/includes/wccom-site/class-wc-wccom-site.php
index 2797cb735b3..4acd894ec41 100644
--- a/plugins/woocommerce/includes/wccom-site/class-wc-wccom-site.php
+++ b/plugins/woocommerce/includes/wccom-site/class-wc-wccom-site.php
@@ -152,7 +152,7 @@ class WC_WCCOM_Site {
if ( function_exists( 'getallheaders' ) ) {
$headers = getallheaders();
- // Check for the authoization header case-insensitively.
+ // Check for the authorization header case-insensitively.
foreach ( $headers as $key => $value ) {
if ( 'authorization' === strtolower( $key ) ) {
return $value;
diff --git a/plugins/woocommerce/src/Admin/API/Notes.php b/plugins/woocommerce/src/Admin/API/Notes.php
index 373e0701788..5616e2fef28 100644
--- a/plugins/woocommerce/src/Admin/API/Notes.php
+++ b/plugins/woocommerce/src/Admin/API/Notes.php
@@ -459,7 +459,7 @@ class Notes extends \WC_REST_CRUD_Controller {
if ( empty( $note_ids ) ) {
// Promo note doesn't exist, this could happen in cases where
- // user might have disabled RemoteInboxNotications via disabling
+ // user might have disabled RemoteInboxNotifications via disabling
// marketing suggestions. Thus we'd have to manually add the note.
$note = new Note();
$note->set_name( $promo_note_name );
diff --git a/plugins/woocommerce/src/Admin/API/PaymentGatewaySuggestions.php b/plugins/woocommerce/src/Admin/API/PaymentGatewaySuggestions.php
index 2b4fa5e4948..6e1fa42092c 100644
--- a/plugins/woocommerce/src/Admin/API/PaymentGatewaySuggestions.php
+++ b/plugins/woocommerce/src/Admin/API/PaymentGatewaySuggestions.php
@@ -13,7 +13,7 @@ use Automattic\WooCommerce\Admin\Features\PaymentGatewaySuggestions\Init as Sugg
defined( 'ABSPATH' ) || exit;
/**
- * PaymentGatewaySuggetsions Controller.
+ * PaymentGatewaySuggestions Controller.
*
* @internal
* @extends WC_REST_Data_Controller
@@ -182,14 +182,14 @@ class PaymentGatewaySuggestions extends \WC_REST_Data_Controller {
'readonly' => true,
),
'transaction_processors' => array(
- 'description' => __( 'Array of transaction processors and their images.', 'woocommerce' ),
- 'type' => 'object',
- 'addtionalProperties' => array(
+ 'description' => __( 'Array of transaction processors and their images.', 'woocommerce' ),
+ 'type' => 'object',
+ 'additionalProperties' => array(
'type' => 'string',
'format' => 'uri',
),
- 'context' => array( 'view', 'edit' ),
- 'readonly' => true,
+ 'context' => array( 'view', 'edit' ),
+ 'readonly' => true,
),
),
);
diff --git a/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php b/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php
index 21fc3e3cf33..dbc3589e0b3 100644
--- a/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php
+++ b/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php
@@ -198,13 +198,13 @@ class DataStore extends ReportsDataStore implements DataStoreInterface {
'discount_type' => __( 'N/A', 'woocommerce' ),
);
} else {
- $gmt_timzone = new \DateTimeZone( 'UTC' );
+ $gmt_timezone = new \DateTimeZone( 'UTC' );
$date_expires = $coupon->get_date_expires();
if ( is_a( $date_expires, 'DateTime' ) ) {
$date_expires = $date_expires->format( TimeInterval::$iso_datetime_format );
$date_expires_gmt = new \DateTime( $date_expires );
- $date_expires_gmt->setTimezone( $gmt_timzone );
+ $date_expires_gmt->setTimezone( $gmt_timezone );
$date_expires_gmt = $date_expires_gmt->format( TimeInterval::$iso_datetime_format );
} else {
$date_expires = '';
@@ -215,7 +215,7 @@ class DataStore extends ReportsDataStore implements DataStoreInterface {
if ( is_a( $date_created, 'DateTime' ) ) {
$date_created = $date_created->format( TimeInterval::$iso_datetime_format );
$date_created_gmt = new \DateTime( $date_created );
- $date_created_gmt->setTimezone( $gmt_timzone );
+ $date_created_gmt->setTimezone( $gmt_timezone );
$date_created_gmt = $date_created_gmt->format( TimeInterval::$iso_datetime_format );
} else {
$date_created = '';
diff --git a/plugins/woocommerce/src/Admin/API/Reports/GenericStatsController.php b/plugins/woocommerce/src/Admin/API/Reports/GenericStatsController.php
index 13372100793..ca7bce62046 100644
--- a/plugins/woocommerce/src/Admin/API/Reports/GenericStatsController.php
+++ b/plugins/woocommerce/src/Admin/API/Reports/GenericStatsController.php
@@ -21,7 +21,7 @@ use WP_Error;
* <pre><code class="language-php">class StatsController extends GenericStatsController {
* /** Route of your new REST endpoint. */
* protected $rest_base = 'reports/my-thing/stats';
- * /** Define your proeprties schema. */
+ * /** Define your properties schema. */
* protected function get_item_properties_schema() {
* return array(
* 'my_property' => array(
@@ -117,7 +117,7 @@ abstract class GenericStatsController extends GenericController {
'type' => 'object',
'properties' => array(
'segment_id' => array(
- 'description' => __( 'Segment identificator.', 'woocommerce' ),
+ 'description' => __( 'Segment identifier.', 'woocommerce' ),
'type' => 'integer',
'context' => array( 'view', 'edit' ),
'readonly' => true,
diff --git a/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php b/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php
index 522fc125713..778a2e076d3 100644
--- a/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php
+++ b/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php
@@ -58,7 +58,7 @@ class Segmenter {
/**
* Filters definitions for SELECT clauses based on query_args and joins them into one string usable in SELECT clause.
*
- * @param array $columns_mapping Column name -> SQL statememt mapping.
+ * @param array $columns_mapping Column name -> SQL statement mapping.
*
* @return string to be used in SELECT clause statements.
*/
diff --git a/plugins/woocommerce/src/Admin/Features/Features.php b/plugins/woocommerce/src/Admin/Features/Features.php
index 32c101a6246..6c61e833779 100644
--- a/plugins/woocommerce/src/Admin/Features/Features.php
+++ b/plugins/woocommerce/src/Admin/Features/Features.php
@@ -184,7 +184,7 @@ class Features {
/**
* Gets a build configured array of enabled WooCommerce Admin features/sections, but does not respect optionally disabled features.
*
- * @return array Enabled Woocommerce Admin features/sections.
+ * @return array Enabled WooCommerce Admin features/sections.
*/
public static function get_features() {
return apply_filters( 'woocommerce_admin_features', array() );
@@ -310,7 +310,7 @@ class Features {
/**
* Gets a build configured array of enabled WooCommerce Admin respecting optionally disabled features.
*
- * @return array Enabled Woocommerce Admin features/sections.
+ * @return array Enabled WooCommerce Admin features/sections.
*/
public static function get_available_features() {
$features = self::get_features_with_legacy_compatibility_defaults();
@@ -518,7 +518,7 @@ class Features {
/**
* Gets WooCommerce Admin features with legacy compatibility defaults before public filtering.
*
- * @return array Enabled Woocommerce Admin features/sections.
+ * @return array Enabled WooCommerce Admin features/sections.
*/
private static function get_features_with_legacy_compatibility_defaults() {
/**
diff --git a/plugins/woocommerce/src/Admin/Features/LaunchYourStore.php b/plugins/woocommerce/src/Admin/Features/LaunchYourStore.php
index 8984f46ec65..1efac369e32 100644
--- a/plugins/woocommerce/src/Admin/Features/LaunchYourStore.php
+++ b/plugins/woocommerce/src/Admin/Features/LaunchYourStore.php
@@ -115,7 +115,7 @@ class LaunchYourStore {
// phpcs:enable
if ( $is_setting_page || $is_woopayments_connect ) {
- // Regnerate the share key if it's not set.
+ // Regenerate the share key if it's not set.
add_option( 'woocommerce_share_key', wp_generate_password( 32, false ) );
$settings['siteVisibilitySettings'] = array(
diff --git a/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/EvaluateOverrides.php b/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/EvaluateOverrides.php
index 80e62bf7409..bdc36dd2ce8 100644
--- a/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/EvaluateOverrides.php
+++ b/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/EvaluateOverrides.php
@@ -27,7 +27,7 @@ class EvaluateOverrides {
}
if ( $rule_evaluator->evaluate( $override->rules ) ) {
- // If value exisit and can be accessed directly, update it.
+ // If value exist and can be accessed directly, update it.
if ( isset( $spec_item->{$override->field} ) ) {
$spec_item->{$override->field} = $override->value;
} else {
diff --git a/plugins/woocommerce/src/Autoloader.php b/plugins/woocommerce/src/Autoloader.php
index 70cb33200b0..b7ddc5cb5f0 100644
--- a/plugins/woocommerce/src/Autoloader.php
+++ b/plugins/woocommerce/src/Autoloader.php
@@ -134,7 +134,7 @@ class Autoloader {
*
* Degrades to null (nothing registered) if the Composer files are unavailable or a
* foreign/malformed `ClassLoader` shape is present. The handler likewise leaves a class
- * unresolved — rather than fataling — if a resolved file is torn/unparseable mid-upgrade,
+ * unresolved — rather than fataling — if a resolved file is torn/unparsable mid-upgrade,
* so a defensive `class_exists()` probe during an upgrade gets `false` instead of an error.
* The failed attempt stays retryable: the handler records only the files it has executed
* cleanly, so once the upgrade finishes writing a file that previously failed to parse,
diff --git a/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php b/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php
index b50a0b57b82..4e2c3a2d2e9 100644
--- a/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php
+++ b/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php
@@ -345,7 +345,7 @@ class CheckoutFieldsFrontend {
$persist_fields = [];
$errors = new \WP_Error();
- // Validate individual fields agains the document object. Errors are added to the $errors object, and each field is validated regardless of other field errors.
+ // Validate individual fields against the document object. Errors are added to the $errors object, and each field is validated regardless of other field errors.
foreach ( $fields as $field_key => $field ) {
$field_value = $field_values[ $field_key ];
diff --git a/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsSchema/DocumentObject.php b/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsSchema/DocumentObject.php
index 94a923bbde6..2bf30c84aa0 100644
--- a/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsSchema/DocumentObject.php
+++ b/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsSchema/DocumentObject.php
@@ -22,7 +22,7 @@ use Automattic\WooCommerce\Utilities\NumberUtil;
*/
class DocumentObject {
/**
- * Docuemnt object context which may adjust the schema response.
+ * Document object context which may adjust the schema response.
*
* @var null|string
*/
diff --git a/plugins/woocommerce/src/Blocks/Domain/Services/Hydration.php b/plugins/woocommerce/src/Blocks/Domain/Services/Hydration.php
index fdbb31c9e10..1a3441dce4f 100644
--- a/plugins/woocommerce/src/Blocks/Domain/Services/Hydration.php
+++ b/plugins/woocommerce/src/Blocks/Domain/Services/Hydration.php
@@ -218,7 +218,7 @@ class Hydration {
* Extracts URL parameters from regex named groups and query string parameters.
*
* @param string $path The path to match (may include query string).
- * @param array $available_routes Available routes in { $regex1 => $contoller_class1, ... } format.
+ * @param array $available_routes Available routes in { $regex1 => $controller_class1, ... } format.
*
* @return array|null Array with 'controller', 'url_params', and 'query_params' keys, or null if no match.
*/
diff --git a/plugins/woocommerce/src/Blocks/Package.php b/plugins/woocommerce/src/Blocks/Package.php
index b3953ec5f69..7bffb26564d 100644
--- a/plugins/woocommerce/src/Blocks/Package.php
+++ b/plugins/woocommerce/src/Blocks/Package.php
@@ -25,7 +25,7 @@ class Package {
/**
* For back compat this is provided. Ideally, you should register your
- * class with Automattic\Woocommerce\Blocks\Container and make Package a
+ * class with Automattic\WooCommerce\Blocks\Container and make Package a
* dependency.
*
* @since 2.5.0
diff --git a/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationController.php b/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationController.php
index f71e73ee294..0eb1e38e2fb 100644
--- a/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationController.php
+++ b/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationController.php
@@ -218,20 +218,20 @@ class PostsToOrdersMigrationController {
* Execute a database query and log any errors.
*
* @param string $query The SQL query to execute.
- * @param bool $supress_errors Whether to suppress errors.
+ * @param bool $suppress_errors Whether to suppress errors.
*
* @return bool True if the query succeeded, false if there were errors.
*/
- private function db_query( string $query, bool $supress_errors = false ): bool {
+ private function db_query( string $query, bool $suppress_errors = false ): bool {
$wpdb = WC()->get_global( 'wpdb' );
try {
- if ( $supress_errors ) {
+ if ( $suppress_errors ) {
$suppress = $wpdb->suppress_errors( true );
}
// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
$wpdb->query( $query );
- if ( $supress_errors ) {
+ if ( $suppress_errors ) {
$wpdb->suppress_errors( $suppress );
}
} catch ( \Exception $exception ) {
diff --git a/plugins/woocommerce/src/Database/Migrations/MetaToCustomTableMigrator.php b/plugins/woocommerce/src/Database/Migrations/MetaToCustomTableMigrator.php
index 573fdedace3..597703121cc 100644
--- a/plugins/woocommerce/src/Database/Migrations/MetaToCustomTableMigrator.php
+++ b/plugins/woocommerce/src/Database/Migrations/MetaToCustomTableMigrator.php
@@ -52,7 +52,7 @@ abstract class MetaToCustomTableMigrator extends TableMigrator {
'entity' => array(
'table_name' => $source_table_name,
'meta_rel_column' => $column_meta, Name of column in source table which is referenced by meta table.
- 'destination_rel_column' => $column_dest, Name of column in source table which is refenced by destination table,
+ 'destination_rel_column' => $column_dest, Name of column in source table which is referenced by destination table,
'primary_key' => $primary_key, Primary key of the source table
),
'meta' => array(
@@ -515,7 +515,7 @@ WHERE
$sanitized_entity_data = array();
$error_records = array();
$this->process_and_sanitize_entity_data( $sanitized_entity_data, $error_records, $entity_data );
- $this->processs_and_sanitize_meta_data( $sanitized_entity_data, $error_records, $meta_data );
+ $this->process_and_sanitize_meta_data( $sanitized_entity_data, $error_records, $meta_data );
return array(
'data' => $sanitized_entity_data,
@@ -548,13 +548,13 @@ WHERE
}
/**
- * Helper method to sanitize soure meta data.
+ * Helper method to sanitize source meta data.
*
* @param array $sanitized_entity_data Array containing sanitized data for insertion.
* @param array $error_records Error records.
* @param array $meta_data Original source data.
*/
- private function processs_and_sanitize_meta_data( array &$sanitized_entity_data, array &$error_records, array $meta_data ): void {
+ private function process_and_sanitize_meta_data( array &$sanitized_entity_data, array &$error_records, array $meta_data ): void {
foreach ( $meta_data as $datum ) {
$column_schema = $this->meta_column_mapping[ $datum->meta_key ];
if ( isset( $sanitized_entity_data[ $datum->entity_id ][ $column_schema['destination'] ] ) ) {
diff --git a/plugins/woocommerce/src/Internal/Admin/Coupons.php b/plugins/woocommerce/src/Internal/Admin/Coupons.php
index 46b0f0ee0c1..7ab26e7f14a 100644
--- a/plugins/woocommerce/src/Internal/Admin/Coupons.php
+++ b/plugins/woocommerce/src/Internal/Admin/Coupons.php
@@ -103,8 +103,8 @@ class Coupons {
* Maybe add our wc-admin coupon scripts if viewing coupon pages
*/
public function maybe_add_marketing_coupon_script() {
- $curent_screen = PageController::get_instance()->get_current_page();
- if ( ! isset( $curent_screen['id'] ) || $curent_screen['id'] !== 'woocommerce-coupons' ) {
+ $current_screen = PageController::get_instance()->get_current_page();
+ if ( ! isset( $current_screen['id'] ) || 'woocommerce-coupons' !== $current_screen['id'] ) {
return;
}
diff --git a/plugins/woocommerce/src/Internal/Admin/Loader.php b/plugins/woocommerce/src/Internal/Admin/Loader.php
index 69eddadabd1..df643c7898b 100644
--- a/plugins/woocommerce/src/Internal/Admin/Loader.php
+++ b/plugins/woocommerce/src/Internal/Admin/Loader.php
@@ -179,7 +179,7 @@ class Loader {
/**
* Some routes or features like onboarding hide the wp-admin navigation and masterbar.
- * Setting `woocommerce_admin_is_loading` to true allows us to premeptively hide these
+ * Setting `woocommerce_admin_is_loading` to true allows us to preemptively hide these
* elements while the JS app loads.
* This class needs to be removed by those feature components (like <ProfileWizard />).
*
diff --git a/plugins/woocommerce/src/Internal/Admin/ProductForm/FormFactory.php b/plugins/woocommerce/src/Internal/Admin/ProductForm/FormFactory.php
index 02f8ff9ed3b..ec58c0812d8 100644
--- a/plugins/woocommerce/src/Internal/Admin/ProductForm/FormFactory.php
+++ b/plugins/woocommerce/src/Internal/Admin/ProductForm/FormFactory.php
@@ -2,7 +2,7 @@
/**
* WooCommerce Product Form Factory
*
- * @package Woocommerce ProductForm
+ * @package WooCommerce ProductForm
*/
namespace Automattic\WooCommerce\Internal\Admin\ProductForm;
diff --git a/plugins/woocommerce/src/Internal/CostOfGoodsSold/CogsAwareTrait.php b/plugins/woocommerce/src/Internal/CostOfGoodsSold/CogsAwareTrait.php
index 146eca4840c..6f82c1c74aa 100644
--- a/plugins/woocommerce/src/Internal/CostOfGoodsSold/CogsAwareTrait.php
+++ b/plugins/woocommerce/src/Internal/CostOfGoodsSold/CogsAwareTrait.php
@@ -13,7 +13,7 @@ trait CogsAwareTrait {
/**
* Check if the Cost of Goods Sold feature is enabled.
*
- * @param string|null $doing_it_wrong_function_name If not null, a "doing it wrong" error will be thrown with this function name if the deature is disabled.
+ * @param string|null $doing_it_wrong_function_name If not null, a "doing it wrong" error will be thrown with this function name if the feature is disabled.
*
* @return bool True if the feature is enabled.
*/
diff --git a/plugins/woocommerce/src/Internal/DataStores/CustomMetaDataStore.php b/plugins/woocommerce/src/Internal/DataStores/CustomMetaDataStore.php
index 6da2d56242e..29869d4fe02 100644
--- a/plugins/woocommerce/src/Internal/DataStores/CustomMetaDataStore.php
+++ b/plugins/woocommerce/src/Internal/DataStores/CustomMetaDataStore.php
@@ -20,7 +20,7 @@ abstract class CustomMetaDataStore {
abstract protected function get_table_name();
/**
- * Returns the name of the field/column used for identifiying metadata entries.
+ * Returns the name of the field/column used for identifying metadata entries.
*
* @return string
*/
diff --git a/plugins/woocommerce/src/Internal/DataStores/Orders/CustomOrdersTableController.php b/plugins/woocommerce/src/Internal/DataStores/Orders/CustomOrdersTableController.php
index c9c4cc8b906..a609d8a78f2 100644
--- a/plugins/woocommerce/src/Internal/DataStores/Orders/CustomOrdersTableController.php
+++ b/plugins/woocommerce/src/Internal/DataStores/Orders/CustomOrdersTableController.php
@@ -234,7 +234,7 @@ class CustomOrdersTableController {
/**
* Is caching of data within the CustomerOrdersTable datastores enabled?
*
- * @return bool True if the caching is enabled within the CustomeOrderTable Datastores.
+ * @return bool True if the caching is enabled within the CustomOrderTable Datastores.
*/
public function hpos_data_caching_is_enabled(): bool {
return get_option( self::HPOS_DATASTORE_CACHING_ENABLED_OPTION ) === 'yes' &&
diff --git a/plugins/woocommerce/src/Internal/DataStores/StockNotifications/StockNotificationsMetaDataStore.php b/plugins/woocommerce/src/Internal/DataStores/StockNotifications/StockNotificationsMetaDataStore.php
index a2244f6306c..57ecf0fba44 100644
--- a/plugins/woocommerce/src/Internal/DataStores/StockNotifications/StockNotificationsMetaDataStore.php
+++ b/plugins/woocommerce/src/Internal/DataStores/StockNotifications/StockNotificationsMetaDataStore.php
@@ -27,7 +27,7 @@ class StockNotificationsMetaDataStore extends CustomMetaDataStore {
}
/**
- * Returns the name of the field/column used for identifiying metadata entries.
+ * Returns the name of the field/column used for identifying metadata entries.
*
* @return string
*/
diff --git a/plugins/woocommerce/src/Internal/ProductDownloads/ApprovedDirectories/Register.php b/plugins/woocommerce/src/Internal/ProductDownloads/ApprovedDirectories/Register.php
index a9eeed8e739..6450f2f390e 100644
--- a/plugins/woocommerce/src/Internal/ProductDownloads/ApprovedDirectories/Register.php
+++ b/plugins/woocommerce/src/Internal/ProductDownloads/ApprovedDirectories/Register.php
@@ -418,7 +418,7 @@ class Register {
}
/**
- * Delete the approved directory identitied by the supplied ID.
+ * Delete the approved directory identified by the supplied ID.
*
* @param int $id The ID of the rule to be deleted.
*
@@ -452,7 +452,7 @@ class Register {
}
/**
- * Enable the approved directory identitied by the supplied ID.
+ * Enable the approved directory identified by the supplied ID.
*
* @param int $id The ID of the rule to be deleted.
*
@@ -471,7 +471,7 @@ class Register {
}
/**
- * Disable the approved directory identitied by the supplied ID.
+ * Disable the approved directory identified by the supplied ID.
*
* @param int $id The ID of the rule to be deleted.
*
diff --git a/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php b/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php
index cabee67c3ce..44d4167ec9d 100644
--- a/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php
+++ b/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php
@@ -2380,7 +2380,7 @@ class Controller extends WC_REST_Products_V2_Controller {
$params = parent::get_collection_params();
$params['categories'] = array(
- 'description' => __( 'Limit result set to specific product categorie ids.', 'woocommerce' ),
+ 'description' => __( 'Limit result set to specific product category ids.', 'woocommerce' ),
'type' => 'array',
'items' => array(
'type' => 'integer',
diff --git a/plugins/woocommerce/src/Internal/Utilities/DatabaseUtil.php b/plugins/woocommerce/src/Internal/Utilities/DatabaseUtil.php
index 86b7bf8140c..a94ae3b4bcd 100644
--- a/plugins/woocommerce/src/Internal/Utilities/DatabaseUtil.php
+++ b/plugins/woocommerce/src/Internal/Utilities/DatabaseUtil.php
@@ -18,7 +18,7 @@ class DatabaseUtil {
* Wrapper for the WordPress dbDelta function, allows to execute a series of SQL queries.
*
* @param string $queries The SQL queries to execute.
- * @param bool $execute Ture to actually execute the queries, false to only simulate the execution.
+ * @param bool $execute True to actually execute the queries, false to only simulate the execution.
* @return array The result of the execution (or simulation) from dbDelta.
*/
public function dbdelta( string $queries = '', bool $execute = true ): array {
diff --git a/plugins/woocommerce/src/Internal/Utilities/ProductUtil.php b/plugins/woocommerce/src/Internal/Utilities/ProductUtil.php
index 2ec6f40fcb3..e380ce8683e 100644
--- a/plugins/woocommerce/src/Internal/Utilities/ProductUtil.php
+++ b/plugins/woocommerce/src/Internal/Utilities/ProductUtil.php
@@ -158,7 +158,7 @@ class ProductUtil {
if ( null === $count_per_status ) {
// Defensive perimeter: dirty product data (running/crushed product data import/migration/mocking utilities).
- // We passed on adding wc_doing_it_wrong as it'll add assymetric friction to already running customers fleet.
+ // We passed on adding wc_doing_it_wrong as it'll add asymmetric friction to already running customers fleet.
// Enforce strict typing to prevent PHP from silently casting numeric-string array keys to integers, and to normalize inconsistent types from WordPress APIs.
$count_per_status = (array) wp_count_posts( $post_type ) + array_fill_keys( array_keys( get_post_stati() ), 0 );
foreach ( $count_per_status as $status => $count ) {
diff --git a/plugins/woocommerce/src/README.md b/plugins/woocommerce/src/README.md
index c79e8aab572..6f700167375 100644
--- a/plugins/woocommerce/src/README.md
+++ b/plugins/woocommerce/src/README.md
@@ -66,7 +66,7 @@ composer update
## The container
-WooCommerce uses a [PSR-11](https://www.php-fig.org/psr/psr-11/) compatible container for retrieving instances of all the classes in this directory by using the [dependency injection](https://en.wikipedia.org/wiki/Dependency_injection) pattern. This container is very simple: explicit class registration is not needed, any class in the `Automattic\Woocommerce` namespace can be retrieved and reflection is used to locate and instantiate classes and their dependencies.
+WooCommerce uses a [PSR-11](https://www.php-fig.org/psr/psr-11/) compatible container for retrieving instances of all the classes in this directory by using the [dependency injection](https://en.wikipedia.org/wiki/Dependency_injection) pattern. This container is very simple: explicit class registration is not needed, any class in the `Automattic\WooCommerce` namespace can be retrieved and reflection is used to locate and instantiate classes and their dependencies.
The container assumes that all the retrieved classes are single-instance classes: the class will be instantiated the first time it's requested, and further requests will serve a cached version of the created instance. Thus for data-only classes for which multiple instances may be needed, instances should be created directly with `new` instead.
@@ -139,11 +139,11 @@ function wc_function_that_needs_service_1() {
This is also the recommended approach when moving code from `includes` to `src` while keeping the existing entry points for the old code in place for compatibility.
-Worth noting: the container will throw a `ContainerException` when receiving a request for retrieving a class that doesn't exist or is not in the `Automattic\Woocommerce` namespace, or when there's an error preventing the instantiation (for example the class doesn't have a public constructor). You can use the container `has` method to verify that a given class can actually be retrieved, but this method will only verify that the class exists and is in the correct namespace.
+Worth noting: the container will throw a `ContainerException` when receiving a request for retrieving a class that doesn't exist or is not in the `Automattic\WooCommerce` namespace, or when there's an error preventing the instantiation (for example the class doesn't have a public constructor). You can use the container `has` method to verify that a given class can actually be retrieved, but this method will only verify that the class exists and is in the correct namespace.
#### A note on legacy classes
-The container is intended for retrieving **only** classes in the `src` folder, or put another way, classes in the `Automattic\Woocommerce` namespace. An attempt to retrieve a class that is not in that namespace will throw an exception.
+The container is intended for retrieving **only** classes in the `src` folder, or put another way, classes in the `Automattic\WooCommerce` namespace. An attempt to retrieve a class that is not in that namespace will throw an exception.
This implies that classes outside `src` can't be dependency-injected, and thus must not be used as type hints in `init` arguments. There are mechanisms in place to interact with "outside" code (including code from the `includes` folder and third-party code) in a way that makes it easy to write unit tests - see [The `LegacyProxy` class](#the-legacyproxy-class).
diff --git a/plugins/woocommerce/src/StoreApi/Utilities/ArrayUtils.php b/plugins/woocommerce/src/StoreApi/Utilities/ArrayUtils.php
index bea5b8a6aa2..8cae8dba425 100644
--- a/plugins/woocommerce/src/StoreApi/Utilities/ArrayUtils.php
+++ b/plugins/woocommerce/src/StoreApi/Utilities/ArrayUtils.php
@@ -11,7 +11,7 @@ class ArrayUtils {
* @param array $array The array to join together with the natural language conjunction.
* @param bool $enclose_items_with_quotes Whether each item in the array should be enclosed within quotation marks.
*
- * @return string a string containing a list of items and a natural language conjuction.
+ * @return string a string containing a list of items and a natural language conjunction.
*/
public static function natural_language_join( $array, $enclose_items_with_quotes = false ) {
if ( true === $enclose_items_with_quotes ) {
diff --git a/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php b/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php
index 8e446e6247b..450e2b2a721 100644
--- a/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php
+++ b/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php
@@ -178,7 +178,7 @@ class ProductQuery implements QueryClausesGenerator {
$args['tax_query'] = $tax_query; // phpcs:ignore
}
} else {
- // For product_variantions we need to convert the tax_query to a meta_query.
+ // For product_variations we need to convert the tax_query to a meta_query.
if ( ! empty( $args['tax_query'] ) ) {
$args['meta_query'] = $this->convert_tax_query_to_meta_query( array_merge( $tax_query, $args['tax_query'] ) ); // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query
} else {
diff --git a/plugins/woocommerce/tests/e2e/tests/onboarding/onboarding-wizard.spec.ts b/plugins/woocommerce/tests/e2e/tests/onboarding/onboarding-wizard.spec.ts
index 2125ca8d964..4dbb6b59e94 100644
--- a/plugins/woocommerce/tests/e2e/tests/onboarding/onboarding-wizard.spec.ts
+++ b/plugins/woocommerce/tests/e2e/tests/onboarding/onboarding-wizard.spec.ts
@@ -291,7 +291,7 @@ test.describe(
} )
).not.toBeAttached();
- // select and install the rest of the extentions
+ // select and install the rest of the extensions
try {
await page
.getByText(
diff --git a/plugins/woocommerce/tests/legacy/framework/class-wc-unit-test-case.php b/plugins/woocommerce/tests/legacy/framework/class-wc-unit-test-case.php
index 3ae72b2ac45..a7f78efc52a 100644
--- a/plugins/woocommerce/tests/legacy/framework/class-wc-unit-test-case.php
+++ b/plugins/woocommerce/tests/legacy/framework/class-wc-unit-test-case.php
@@ -540,7 +540,7 @@ class WC_Unit_Test_Case extends WP_HTTP_TestCase {
/**
* Normalizes a block of HTML.
- * Line breaks, tabs and redundand whitespaces are removed.
+ * Line breaks, tabs and redundant whitespaces are removed.
*
* @param string $html The block of HTML to normalize.
*
diff --git a/plugins/woocommerce/tests/legacy/framework/helpers/class-wc-helper-product.php b/plugins/woocommerce/tests/legacy/framework/helpers/class-wc-helper-product.php
index fbcfb8cb46c..847d974435f 100644
--- a/plugins/woocommerce/tests/legacy/framework/helpers/class-wc-helper-product.php
+++ b/plugins/woocommerce/tests/legacy/framework/helpers/class-wc-helper-product.php
@@ -335,7 +335,7 @@ class WC_Helper_Product {
if ( ! $attribute_id ) {
$taxonomy_name = wc_attribute_taxonomy_name( $attribute_name );
- // Degister taxonomy which other tests may have created...
+ // Deregister taxonomy which other tests may have created...
unregister_taxonomy( $taxonomy_name );
$attribute_id = wc_create_attribute(
diff --git a/plugins/woocommerce/tests/legacy/includes/wp-http-testcase.php b/plugins/woocommerce/tests/legacy/includes/wp-http-testcase.php
index 19ceb5cde01..44ed55b82ce 100644
--- a/plugins/woocommerce/tests/legacy/includes/wp-http-testcase.php
+++ b/plugins/woocommerce/tests/legacy/includes/wp-http-testcase.php
@@ -189,7 +189,7 @@ abstract class WP_HTTP_TestCase extends WP_UnitTestCase {
$this->http_responder = array( $this, 'route_request' );
}
- add_filter( 'pre_http_request', array( $this, 'http_request_listner' ), 10, 3 );
+ add_filter( 'pre_http_request', array( $this, 'http_request_listener' ), 10, 3 );
}
/**
@@ -201,7 +201,7 @@ abstract class WP_HTTP_TestCase extends WP_UnitTestCase {
parent::tearDown();
- remove_filter( 'pre_http_request', array( $this, 'http_request_listner' ) );
+ remove_filter( 'pre_http_request', array( $this, 'http_request_listener' ) );
remove_filter( 'wp_handle_sideload_overrides', array( $this, 'set_sample_image_unique_filename_callback' ) );
$this->skip_cache_next = false;
@@ -225,7 +225,7 @@ abstract class WP_HTTP_TestCase extends WP_UnitTestCase {
*
* @return mixed A response, or false.
*/
- public function http_request_listner( $preempt, $request, $url ) {
+ public function http_request_listener( $preempt, $request, $url ) {
$this->http_requests[] = array(
'url' => $url,
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/cart/cart.php b/plugins/woocommerce/tests/legacy/unit-tests/cart/cart.php
index a05ae660a43..55890b2c09a 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/cart/cart.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/cart/cart.php
@@ -1792,9 +1792,9 @@ class WC_Tests_Cart extends WC_Unit_Test_Case {
}
/**
- * test_add_invidual_use_coupon.
+ * test_add_individual_use_coupon.
*/
- public function test_add_invidual_use_coupon() {
+ public function test_add_individual_use_coupon() {
$iu_coupon = WC_Helper_Coupon::create_coupon( 'code1' );
$iu_coupon->set_individual_use( true );
$iu_coupon->save();
@@ -1898,9 +1898,9 @@ class WC_Tests_Cart extends WC_Unit_Test_Case {
}
/**
- * test_cart_object_istantiation.
+ * test_cart_object_instantiation.
*/
- public function test_cart_object_istantiation() {
+ public function test_cart_object_instantiation() {
$cart = new WC_Cart();
$this->assertInstanceOf( 'WC_Cart', $cart );
}
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/exporter/product.php b/plugins/woocommerce/tests/legacy/unit-tests/exporter/product.php
index 0b0b6832823..7ae5d370a85 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/exporter/product.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/exporter/product.php
@@ -138,7 +138,7 @@ class WC_Tests_Product_CSV_Exporter extends WC_Unit_Test_Case {
}
/**
- * Verify one product for test_perpare_data_to_export.
+ * Verify one product for test_prepare_data_to_export.
* @since 3.1.0
*/
public function verify_exported_data( $row, $product ) {
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/formatting/functions.php b/plugins/woocommerce/tests/legacy/unit-tests/formatting/functions.php
index ab7fe28a322..f8365d62edd 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/formatting/functions.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/formatting/functions.php
@@ -491,7 +491,7 @@ class WC_Tests_Formatting_Functions extends WC_Unit_Test_Case {
),
);
- $overlayed = array(
+ $overlaid = array(
'apple' => 'kiwi',
'pear' => 'grape',
'vegetables' => array(
@@ -499,7 +499,7 @@ class WC_Tests_Formatting_Functions extends WC_Unit_Test_Case {
),
);
- $this->assertEquals( $overlayed, wc_array_overlay( $a1, $a2 ) );
+ $this->assertEquals( $overlaid, wc_array_overlay( $a1, $a2 ) );
}
/**
@@ -1085,7 +1085,7 @@ class WC_Tests_Formatting_Functions extends WC_Unit_Test_Case {
* Provides a mocked response for the oembed test. This way it is not necessary to perform
* a regular request to an external server which would significantly slow down the tests.
*
- * This function is called by WP_HTTP_TestCase::http_request_listner().
+ * This function is called by WP_HTTP_TestCase::http_request_listener().
*
* @param array $request Request arguments.
* @param string $url URL of the request.
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/importer/product.php b/plugins/woocommerce/tests/legacy/unit-tests/importer/product.php
index efa9ac50831..15afe87edac 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/importer/product.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/importer/product.php
@@ -967,7 +967,7 @@ class WC_Tests_Product_CSV_Importer extends WC_Unit_Test_Case {
* This way it is not necessary to perform a regular request to an external server which would
* significantly slow down the tests.
*
- * This function is called by WP_HTTP_TestCase::http_request_listner().
+ * This function is called by WP_HTTP_TestCase::http_request_listener().
*
* @param array $request Request arguments.
* @param string $url URL of the request.
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/integrations/maxmind-geolocation/class-wc-tests-maxmind-database.php b/plugins/woocommerce/tests/legacy/unit-tests/integrations/maxmind-geolocation/class-wc-tests-maxmind-database.php
index a1132d435be..d80b4d56b27 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/integrations/maxmind-geolocation/class-wc-tests-maxmind-database.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/integrations/maxmind-geolocation/class-wc-tests-maxmind-database.php
@@ -119,7 +119,7 @@ class WC_Tests_MaxMind_Database extends WC_Unit_Test_Case {
* Thanks to WP_HTTP_TestCase, it is not necessary to perform a regular request
* to an external server which would significantly slow down the tests.
*
- * This function is called by WP_HTTP_TestCase::http_request_listner().
+ * This function is called by WP_HTTP_TestCase::http_request_listener().
*
* @param array $request Request arguments.
* @param string $url URL of the request.
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/libraries/class-wc-mock-background-process.php b/plugins/woocommerce/tests/legacy/unit-tests/libraries/class-wc-mock-background-process.php
index 2cc6da806d9..7854acd7553 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/libraries/class-wc-mock-background-process.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/libraries/class-wc-mock-background-process.php
@@ -45,7 +45,7 @@ class WC_Mock_Background_Process extends WC_Background_Process {
}
/**
- * Rerturns the batch data.
+ * Returns the batch data.
*
* @return void
*/
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/order/class-wc-tests-crud-orders.php b/plugins/woocommerce/tests/legacy/unit-tests/order/class-wc-tests-crud-orders.php
index 13d62b3d464..1f5135fbeac 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/order/class-wc-tests-crud-orders.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/order/class-wc-tests-crud-orders.php
@@ -695,9 +695,9 @@ class WC_Tests_CRUD_Orders extends WC_Unit_Test_Case {
}
/**
- * Test: calculate_taxes_is_vat_excempt
+ * Test: calculate_taxes_is_vat_exempt
*/
- public function test_calculate_taxes_is_vat_excempt() {
+ public function test_calculate_taxes_is_vat_exempt() {
update_option( 'woocommerce_calc_taxes', 'yes' );
$tax_rate = array(
'tax_rate_country' => '',
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/order/class-wc-tests-orders.php b/plugins/woocommerce/tests/legacy/unit-tests/order/class-wc-tests-orders.php
index 67f332f9ee6..7a7b2af88f0 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/order/class-wc-tests-orders.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/order/class-wc-tests-orders.php
@@ -161,7 +161,7 @@ class WC_Tests_Orders extends WC_Unit_Test_Case {
}
/**
- * @testdox Refunds of products with Cost of Goods Sold have the proper cost value, and calculate_totals in the order substracts it from the order cost.
+ * @testdox Refunds of products with Cost of Goods Sold have the proper cost value, and calculate_totals in the order subtracts it from the order cost.
*/
public function test_calculate_cogs_for_orders_with_refunds() {
$this->enable_cogs_feature();
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/order/coupons.php b/plugins/woocommerce/tests/legacy/unit-tests/order/coupons.php
index 178fc831a5f..7ac1c281d5b 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/order/coupons.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/order/coupons.php
@@ -79,7 +79,7 @@ class WC_Tests_Order_Coupons extends WC_Unit_Test_Case {
);
$coupon_item_2->set_props(
array(
- 'code' => 'this-is-a-virtal-coupon',
+ 'code' => 'this-is-a-virtual-coupon',
'discount' => 181.82,
'discount_tax' => 18.18,
)
@@ -102,7 +102,7 @@ class WC_Tests_Order_Coupons extends WC_Unit_Test_Case {
);
$coupon_item_2->set_props(
array(
- 'code' => 'this-is-a-virtal-coupon',
+ 'code' => 'this-is-a-virtual-coupon',
'discount' => 200,
'discount_tax' => get_option( 'woocommerce_calc_taxes', 'no' ) === 'yes' ? 20 : 0,
)
@@ -155,7 +155,7 @@ class WC_Tests_Order_Coupons extends WC_Unit_Test_Case {
$this->assertEquals( '799.00', $order->get_total(), $order->get_total() );
// Remove the virtual coupon. Total should be 999.
- $order->remove_coupon( 'this-is-a-virtal-coupon' );
+ $order->remove_coupon( 'this-is-a-virtual-coupon' );
$this->assertEquals( '999.00', $order->get_total(), $order->get_total() );
// Remove the other coupon. Total should be 1000.
@@ -175,7 +175,7 @@ class WC_Tests_Order_Coupons extends WC_Unit_Test_Case {
// Do the above tests in reverse.
$order->remove_coupon( 'test-coupon-1' );
$this->assertEquals( '800.00', $order->get_total(), $order->get_total() );
- $order->remove_coupon( 'this-is-a-virtal-coupon' );
+ $order->remove_coupon( 'this-is-a-virtual-coupon' );
$this->assertEquals( '1000.00', $order->get_total(), $order->get_total() );
}
@@ -218,7 +218,7 @@ class WC_Tests_Order_Coupons extends WC_Unit_Test_Case {
$this->assertEquals( '878.90', $order->get_total(), $order->get_total() );
// Remove the virtual coupon. Total should be 999.
- $order->remove_coupon( 'this-is-a-virtal-coupon' );
+ $order->remove_coupon( 'this-is-a-virtual-coupon' );
$this->assertEquals( '1098.90', $order->get_total(), $order->get_total() );
// Remove the other coupon. Total should be 1000.
@@ -238,7 +238,7 @@ class WC_Tests_Order_Coupons extends WC_Unit_Test_Case {
// Do the above tests in reverse.
$order->remove_coupon( 'test-coupon-1' );
$this->assertEquals( '880.00', $order->get_total(), $order->get_total() );
- $order->remove_coupon( 'this-is-a-virtal-coupon' );
+ $order->remove_coupon( 'this-is-a-virtual-coupon' );
$this->assertEquals( '1100.00', $order->get_total(), $order->get_total() );
}
@@ -274,7 +274,7 @@ class WC_Tests_Order_Coupons extends WC_Unit_Test_Case {
$this->assertEquals( '799.00', $order->get_total(), $order->get_total() );
// Remove the virtual coupon. Total should be 999.
- $order->remove_coupon( 'this-is-a-virtal-coupon' );
+ $order->remove_coupon( 'this-is-a-virtual-coupon' );
$this->assertEquals( '999.00', $order->get_total(), $order->get_total() );
// Remove the other coupon. Total should be 1000.
@@ -294,7 +294,7 @@ class WC_Tests_Order_Coupons extends WC_Unit_Test_Case {
// Do the above tests in reverse.
$order->remove_coupon( 'test-coupon-1' );
$this->assertEquals( '800.00', $order->get_total(), $order->get_total() );
- $order->remove_coupon( 'this-is-a-virtal-coupon' );
+ $order->remove_coupon( 'this-is-a-virtual-coupon' );
$this->assertEquals( '1000.00', $order->get_total(), $order->get_total() );
}
@@ -329,7 +329,7 @@ class WC_Tests_Order_Coupons extends WC_Unit_Test_Case {
$this->assertEquals( '799.00', $order->get_total(), $order->get_total() );
// Remove the virtual coupon. Total should be 999.
- $order->remove_coupon( 'this-is-a-virtal-coupon' );
+ $order->remove_coupon( 'this-is-a-virtual-coupon' );
$this->assertEquals( '999.00', $order->get_total(), $order->get_total() );
// Remove the other coupon. Total should be 1000.
@@ -349,7 +349,7 @@ class WC_Tests_Order_Coupons extends WC_Unit_Test_Case {
// Do the above tests in reverse.
$order->remove_coupon( 'test-coupon-1' );
$this->assertEquals( '800.00', $order->get_total(), $order->get_total() );
- $order->remove_coupon( 'this-is-a-virtal-coupon' );
+ $order->remove_coupon( 'this-is-a-virtual-coupon' );
$this->assertEquals( '1000.00', $order->get_total(), $order->get_total() );
}
@@ -475,7 +475,7 @@ class WC_Tests_Order_Coupons extends WC_Unit_Test_Case {
$order = wc_get_order( $order_id );
$order->remove_coupon( 'test-coupon-1' );
- $order->remove_coupon( 'this-is-a-virtal-coupon' );
+ $order->remove_coupon( 'this-is-a-virtual-coupon' );
$order->apply_coupon( 'test-coupon-3' );
@@ -525,7 +525,7 @@ class WC_Tests_Order_Coupons extends WC_Unit_Test_Case {
* Handler for the woocommerce_coupon_get_discount_amount filter.
*
* @param float $discount Initial discount amount.
- * @param float $discounting_amount Amount from which the discount is to be substracted.
+ * @param float $discounting_amount Amount from which the discount is to be subtracted.
* @param object $cart_item Cart item.
* @param bool $single Always false.
* @param WC_Coupon $coupon The coupon to check.
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Helpers/ProductHelper.php b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Helpers/ProductHelper.php
index e87b682dd04..2944db55587 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Helpers/ProductHelper.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Helpers/ProductHelper.php
@@ -210,7 +210,7 @@ class ProductHelper {
if ( ! $attribute_id ) {
$taxonomy_name = \wc_attribute_taxonomy_name( $attribute_name );
- // Degister taxonomy which other tests may have created...
+ // Deregister taxonomy which other tests may have created...
\unregister_taxonomy( $taxonomy_name );
$attribute_id = \wc_create_attribute(
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version2/settings.php b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version2/settings.php
index 15e27f72e92..bae3c8ca8be 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version2/settings.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version2/settings.php
@@ -810,7 +810,7 @@ class Settings_V2 extends WC_REST_Unit_Test_Case {
$setting = $response->get_data();
$this->assertEquals( 'text', $setting['type'] );
- // Repalce the old value with something uniquely new.
+ // Replace the old value with something uniquely new.
$old_value = $setting['value'];
$new_value = $old_value . ' ' . rand( 1000, 9999 );
$request = new WP_REST_Request( 'PUT', '/wc/v2/settings/general/woocommerce_store_address' );
@@ -848,7 +848,7 @@ class Settings_V2 extends WC_REST_Unit_Test_Case {
$setting = $response->get_data();
$this->assertEquals( 'text', $setting['type'] );
- // Repalce the old value with something uniquely new.
+ // Replace the old value with something uniquely new.
$old_value = $setting['value'];
$new_value = $old_value . ' ' . rand( 1000, 9999 );
$request = new WP_REST_Request( 'PUT', '/wc/v2/settings/general/woocommerce_store_address_2' );
@@ -886,7 +886,7 @@ class Settings_V2 extends WC_REST_Unit_Test_Case {
$setting = $response->get_data();
$this->assertEquals( 'text', $setting['type'] );
- // Repalce the old value with something uniquely new.
+ // Replace the old value with something uniquely new.
$old_value = $setting['value'];
$new_value = $old_value . ' ' . rand( 1000, 9999 );
$request = new WP_REST_Request( 'PUT', '/wc/v2/settings/general/woocommerce_store_city' );
@@ -924,7 +924,7 @@ class Settings_V2 extends WC_REST_Unit_Test_Case {
$setting = $response->get_data();
$this->assertEquals( 'text', $setting['type'] );
- // Repalce the old value with something uniquely new.
+ // Replace the old value with something uniquely new.
$old_value = $setting['value'];
$new_value = $old_value . ' ' . rand( 1000, 9999 );
$request = new WP_REST_Request( 'PUT', '/wc/v2/settings/general/woocommerce_store_postcode' );
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/customers.php b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/customers.php
index 03256111c51..84b93396426 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/customers.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/customers.php
@@ -128,7 +128,7 @@ class Customers extends WC_REST_Unit_Test_Case {
$matching_customer_data
);
- update_option( 'timezone_tring', 'America/New York' );
+ update_option( 'timezone_string', 'America/New_York' );
$customer_3 = \Automattic\WooCommerce\RestApi\UnitTests\Helpers\CustomerHelper::create_customer( 'timezonetest', 'timezonetest', 'timezonetest@woo.local' );
$request = new WP_REST_Request( 'GET', '/wc/v3/customers' );
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/settings.php b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/settings.php
index f99bb68c46f..3a41b13e3b3 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/settings.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/settings.php
@@ -814,7 +814,7 @@ class Settings extends WC_REST_Unit_Test_Case {
$setting = $response->get_data();
$this->assertEquals( 'text', $setting['type'] );
- // Repalce the old value with something uniquely new.
+ // Replace the old value with something uniquely new.
$old_value = $setting['value'];
$new_value = $old_value . ' ' . rand( 1000, 9999 );
$request = new WP_REST_Request( 'PUT', '/wc/v3/settings/general/woocommerce_store_address' );
@@ -852,7 +852,7 @@ class Settings extends WC_REST_Unit_Test_Case {
$setting = $response->get_data();
$this->assertEquals( 'text', $setting['type'] );
- // Repalce the old value with something uniquely new.
+ // Replace the old value with something uniquely new.
$old_value = $setting['value'];
$new_value = $old_value . ' ' . rand( 1000, 9999 );
$request = new WP_REST_Request( 'PUT', '/wc/v3/settings/general/woocommerce_store_address_2' );
@@ -890,7 +890,7 @@ class Settings extends WC_REST_Unit_Test_Case {
$setting = $response->get_data();
$this->assertEquals( 'text', $setting['type'] );
- // Repalce the old value with something uniquely new.
+ // Replace the old value with something uniquely new.
$old_value = $setting['value'];
$new_value = $old_value . ' ' . rand( 1000, 9999 );
$request = new WP_REST_Request( 'PUT', '/wc/v3/settings/general/woocommerce_store_city' );
@@ -928,7 +928,7 @@ class Settings extends WC_REST_Unit_Test_Case {
$setting = $response->get_data();
$this->assertEquals( 'text', $setting['type'] );
- // Repalce the old value with something uniquely new.
+ // Replace the old value with something uniquely new.
$old_value = $setting['value'];
$new_value = $old_value . ' ' . rand( 1000, 9999 );
$request = new WP_REST_Request( 'PUT', '/wc/v3/settings/general/woocommerce_store_postcode' );
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/system-status.php b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/system-status.php
index c5ffd545288..016f88c9cbb 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/system-status.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/rest-api/Tests/Version3/system-status.php
@@ -527,7 +527,7 @@ class WC_Tests_REST_System_Status extends WC_REST_Unit_Test_Case {
* This way it is not necessary to perform a regular request to an external server which would
* significantly slow down the tests.
*
- * This function is called by WP_HTTP_TestCase::http_request_listner().
+ * This function is called by WP_HTTP_TestCase::http_request_listener().
*
* @param array $request Request arguments.
* @param string $url URL of the request.
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/util/api-functions.php b/plugins/woocommerce/tests/legacy/unit-tests/util/api-functions.php
index 7d2bc274a6b..653c1ec8701 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/util/api-functions.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/util/api-functions.php
@@ -223,7 +223,7 @@ class WC_Tests_API_Functions extends WC_Unit_Test_Case {
* Thanks to WP_HTTP_TestCase, it is not necessary to perform a regular request
* to an external server which would significantly slow down the tests.
*
- * This function is called by WP_HTTP_TestCase::http_request_listner().
+ * This function is called by WP_HTTP_TestCase::http_request_listener().
*
* @param array $request Request arguments.
* @param string $url URL of the request.
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/onboarding-tasks.php b/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/onboarding-tasks.php
index 15a04a1ddfa..7560cc6975f 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/onboarding-tasks.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/onboarding-tasks.php
@@ -13,7 +13,7 @@ use Automattic\WooCommerce\Enums\ProductType;
require_once __DIR__ . '/../features/onboarding-tasks/test-task.php';
-// Wrokaround to suppress exif_read_data errors from
+// Workaround to suppress exif_read_data errors from
// https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/image.php#L835
define( 'WP_RUN_CORE_TESTS', false );
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/reports-orders.php b/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/reports-orders.php
index d8fe4a2eab4..eb83caa7c76 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/reports-orders.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/reports-orders.php
@@ -108,7 +108,7 @@ class WC_Admin_Tests_API_Reports_Orders extends WC_REST_Unit_Test_Case {
$order = WC_Helper_Order::create_order( 1, $product );
$order->set_status( OrderStatus::COMPLETED );
$order->set_total( 100 ); // $25 x 4.
- // Make sure the order is paid at least a minute ago to avoid issues with the same timestamp - undeterministic order.
+ // Make sure the order is paid at least a minute ago to avoid issues with the same timestamp - indeterministic order.
$order->set_date_paid( $order->get_date_paid()->modify( '-1 minute' ) );
$order->save();
diff --git a/plugins/woocommerce/tests/php/includes/abstracts/class-wc-abstract-order-test.php b/plugins/woocommerce/tests/php/includes/abstracts/class-wc-abstract-order-test.php
index 53b78cab8a9..2e6fa2e8637 100644
--- a/plugins/woocommerce/tests/php/includes/abstracts/class-wc-abstract-order-test.php
+++ b/plugins/woocommerce/tests/php/includes/abstracts/class-wc-abstract-order-test.php
@@ -714,7 +714,7 @@ class WC_Abstract_Order_Test extends WC_Unit_Test_Case {
/**
* @testDox Test that order items are not mixed when order_id is zero.
*/
- public function test_order_items_shouldnot_mix_with_zero_id() {
+ public function test_order_items_should_not_mix_with_zero_id() {
$order1 = new WC_Order();
$order2 = new WC_Order();
@@ -871,7 +871,7 @@ class WC_Abstract_Order_Test extends WC_Unit_Test_Case {
}
/**
- * Add a product order item with a given Cost of Goods Sold to an exising order.
+ * Add a product order item with a given Cost of Goods Sold to an existing order.
*
* @param WC_Order $order The target order.
* @param float $cogs_value The COGS value of the product.
diff --git a/plugins/woocommerce/tests/php/includes/admin/helper/class-wc-helper-api.php b/plugins/woocommerce/tests/php/includes/admin/helper/class-wc-helper-api.php
index 81904fa4b7f..e2b84c6d4e4 100644
--- a/plugins/woocommerce/tests/php/includes/admin/helper/class-wc-helper-api.php
+++ b/plugins/woocommerce/tests/php/includes/admin/helper/class-wc-helper-api.php
@@ -59,7 +59,7 @@ class WC_Tests_Helper_API extends WC_Unit_Test_Case {
/**
* Provides a mocked response for various paths and request methods.
*
- * This function is called by WP_HTTP_TestCase::http_request_listner().
+ * This function is called by WP_HTTP_TestCase::http_request_listener().
*
* @param array $request Request arguments.
* @param string $url URL of the request.
diff --git a/plugins/woocommerce/tests/php/includes/gateways/paypal/class-wc-gateway-paypal-test.php b/plugins/woocommerce/tests/php/includes/gateways/paypal/class-wc-gateway-paypal-test.php
index 30b8b7ad7ac..205184da187 100644
--- a/plugins/woocommerce/tests/php/includes/gateways/paypal/class-wc-gateway-paypal-test.php
+++ b/plugins/woocommerce/tests/php/includes/gateways/paypal/class-wc-gateway-paypal-test.php
@@ -20,7 +20,7 @@ class WC_Gateway_Paypal_Test extends \WC_Unit_Test_Case {
private $transaction_id_26960 = 'dummy_id_26960';
/**
- * @var string Dummy indentifiable error message.
+ * @var string Dummy identifiable error message.
*/
private $error_message_26960 = 'Paypal error for GH issue 26960';
diff --git a/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller-tests.php b/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller-tests.php
index d9868061246..b80494cd6ba 100644
--- a/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller-tests.php
+++ b/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller-tests.php
@@ -1010,7 +1010,7 @@ class WC_REST_Orders_Controller_Tests extends WC_REST_Unit_Test_Case {
}
/**
- * Add a product order item with a given Cost of Goods Sold to an exising order.
+ * Add a product order item with a given Cost of Goods Sold to an existing order.
*
* @param WC_Order $order The target order.
* @param float $cogs_value The COGS value of the product.
diff --git a/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller-tests.php b/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller-tests.php
index 8a62dc18e66..259905001c7 100644
--- a/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller-tests.php
+++ b/plugins/woocommerce/tests/php/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller-tests.php
@@ -156,7 +156,7 @@ class WC_REST_Products_Controller_Tests extends WC_Unit_Test_Case {
/**
* Get all expected fields.
*
- * @param bool $with_cogs_enabled Ture to get the fields expected when the Cost of Goods Sold feature is enabled.
+ * @param bool $with_cogs_enabled True to get the fields expected when the Cost of Goods Sold feature is enabled.
*/
public function get_expected_response_fields( bool $with_cogs_enabled ) {
$fields = array(
@@ -246,7 +246,7 @@ class WC_REST_Products_Controller_Tests extends WC_Unit_Test_Case {
* @testWith [true]
* [false]
*
- * @param bool $with_cogs_enabled Ture test with the Cost of Goods Sold feature enabled.
+ * @param bool $with_cogs_enabled True test with the Cost of Goods Sold feature enabled.
*/
public function test_product_api_get_all_fields( bool $with_cogs_enabled ) {
if ( $with_cogs_enabled ) {
@@ -290,7 +290,7 @@ class WC_REST_Products_Controller_Tests extends WC_Unit_Test_Case {
* @testWith [true]
* [false]
*
- * @param bool $with_cogs_enabled Ture test with the Cost of Goods Sold feature enabled.
+ * @param bool $with_cogs_enabled True test with the Cost of Goods Sold feature enabled.
*/
public function test_products_get_each_field_one_by_one( bool $with_cogs_enabled ) {
if ( $with_cogs_enabled ) {
diff --git a/plugins/woocommerce/tests/php/includes/settings/class-wc-settings-integrations-test.php b/plugins/woocommerce/tests/php/includes/settings/class-wc-settings-integrations-test.php
index 2be5b4bb2bb..ecc94bf429f 100644
--- a/plugins/woocommerce/tests/php/includes/settings/class-wc-settings-integrations-test.php
+++ b/plugins/woocommerce/tests/php/includes/settings/class-wc-settings-integrations-test.php
@@ -18,7 +18,7 @@ class WC_Settings_Integrations_Test extends WC_Settings_Unit_Test_Case {
/**
* @testdox 'get_sections' sets the current section to the id of the first integration if it's not set to anything.
*/
- public function test_get_sections_sets_current_section_to_first_available_inegration_if_not_set() {
+ public function test_get_sections_sets_current_section_to_first_available_integration_if_not_set() {
global $current_section;
$integrations = array(
diff --git a/plugins/woocommerce/tests/php/src/Admin/API/PaymentGatewaySuggestionsTest.php b/plugins/woocommerce/tests/php/src/Admin/API/PaymentGatewaySuggestionsTest.php
index 1d0a1a7e6cb..822fa0ea6b6 100644
--- a/plugins/woocommerce/tests/php/src/Admin/API/PaymentGatewaySuggestionsTest.php
+++ b/plugins/woocommerce/tests/php/src/Admin/API/PaymentGatewaySuggestionsTest.php
@@ -45,7 +45,7 @@ class PaymentGatewaySuggestionsTest extends WC_REST_Unit_Test_Case {
* @return void
*/
public function test_it_clears_cache_when_the_base_country_gets_updated() {
- // Clear any exisiting cache first.
+ // Clear any existing cache first.
Init::delete_specs_transient();
$existing_base_country = wc_get_base_location();
diff --git a/plugins/woocommerce/tests/php/src/Admin/Features/Fulfillments/FulfillmentsRendererTest.php b/plugins/woocommerce/tests/php/src/Admin/Features/Fulfillments/FulfillmentsRendererTest.php
index a790e11cca4..b7e0bdd3492 100644
--- a/plugins/woocommerce/tests/php/src/Admin/Features/Fulfillments/FulfillmentsRendererTest.php
+++ b/plugins/woocommerce/tests/php/src/Admin/Features/Fulfillments/FulfillmentsRendererTest.php
@@ -256,7 +256,7 @@ class FulfillmentsRendererTest extends \WC_Unit_Test_Case {
}
/**
- * Test bulk action for fulfilling orders with all items in an unfullfilled fulfillment.
+ * Test bulk action for fulfilling orders with all items in an unfulfilled fulfillment.
*/
public function test_handle_fulfillment_bulk_actions_fulfill_all_items_in_unfulfilled_fulfillment() {
$this->renderer = wc_get_container()->get( FulfillmentsRenderer::class );
@@ -303,7 +303,7 @@ class FulfillmentsRendererTest extends \WC_Unit_Test_Case {
}
/**
- * Test bulk action for fulfilling orders with all items in a fullfilled fulfillment.
+ * Test bulk action for fulfilling orders with all items in a fulfilled fulfillment.
*/
public function test_handle_fulfillment_bulk_actions_fulfill_all_items_in_fulfilled_fulfillment() {
$this->renderer = wc_get_container()->get( FulfillmentsRenderer::class );
diff --git a/plugins/woocommerce/tests/php/src/Admin/PageControllerTest.php b/plugins/woocommerce/tests/php/src/Admin/PageControllerTest.php
index f3c79896b70..f33e81765d0 100644
--- a/plugins/woocommerce/tests/php/src/Admin/PageControllerTest.php
+++ b/plugins/woocommerce/tests/php/src/Admin/PageControllerTest.php
@@ -94,7 +94,7 @@ class PageControllerTest extends WC_Unit_Test_Case {
// Start watching for redirects.
$this->redirected_to = '';
- add_filter( 'wp_redirect', array( $this, 'watch_and_anull_redirects' ) );
+ add_filter( 'wp_redirect', array( $this, 'watch_and_annul_redirects' ) );
}
/**
@@ -104,7 +104,7 @@ class PageControllerTest extends WC_Unit_Test_Case {
*/
public function tearDown(): void {
// Remove redirect listener.
- remove_filter( 'wp_redirect', array( $this, 'watch_and_anull_redirects' ) );
+ remove_filter( 'wp_redirect', array( $this, 'watch_and_annul_redirects' ) );
// Clean up users.
wp_delete_user( $this->admin_user_id );
@@ -148,7 +148,7 @@ class PageControllerTest extends WC_Unit_Test_Case {
* @throws \WPAjaxDieContinueException To prevent exit() from being called after redirect.
* @return void
*/
- public function watch_and_anull_redirects( string $url ) {
+ public function watch_and_annul_redirects( string $url ) {
$this->redirected_to = $url;
// Throw exception to prevent exit() from being called after wp_safe_redirect().
throw new \WPAjaxDieContinueException();
diff --git a/plugins/woocommerce/tests/php/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationControllerTest.php b/plugins/woocommerce/tests/php/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationControllerTest.php
index bb6a09f9b79..bbfc038375d 100644
--- a/plugins/woocommerce/tests/php/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationControllerTest.php
+++ b/plugins/woocommerce/tests/php/src/Database/Migrations/CustomOrderTable/PostsToOrdersMigrationControllerTest.php
@@ -829,7 +829,7 @@ WHERE order_id = {$order_id} AND meta_key = 'non_unique_key_1' AND meta_value in
}
/**
- * @testDox When there are mutli meta values for a supposed unique meta key, the first one is picked.
+ * @testDox When there are multi meta values for a supposed unique meta key, the first one is picked.
*/
public function test_first_value_is_picked_when_multi_value() {
global $wpdb;
diff --git a/plugins/woocommerce/tests/php/src/Internal/Admin/Orders/COTRedirectionControllerTest.php b/plugins/woocommerce/tests/php/src/Internal/Admin/Orders/COTRedirectionControllerTest.php
index 45068769cec..492f8df6f61 100644
--- a/plugins/woocommerce/tests/php/src/Internal/Admin/Orders/COTRedirectionControllerTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/Admin/Orders/COTRedirectionControllerTest.php
@@ -33,7 +33,7 @@ class COTRedirectionControllerTest extends \WC_Unit_Test_Case {
$this->sut->setup();
$this->redirected_to = '';
- add_filter( 'wp_redirect', array( $this, 'watch_and_anull_redirects' ) );
+ add_filter( 'wp_redirect', array( $this, 'watch_and_annul_redirects' ) );
}
/**
@@ -43,7 +43,7 @@ class COTRedirectionControllerTest extends \WC_Unit_Test_Case {
*/
public function tearDown(): void {
parent::tearDown();
- remove_filter( 'wp_redirect', array( $this, 'watch_and_anull_redirects' ) );
+ remove_filter( 'wp_redirect', array( $this, 'watch_and_annul_redirects' ) );
}
/**
@@ -53,7 +53,7 @@ class COTRedirectionControllerTest extends \WC_Unit_Test_Case {
*
* @return null
*/
- public function watch_and_anull_redirects( string $url ) {
+ public function watch_and_annul_redirects( string $url ) {
$this->redirected_to = $url;
return null;
}
diff --git a/plugins/woocommerce/tests/php/src/Internal/Api/ComputePreauthorizedTest.php b/plugins/woocommerce/tests/php/src/Internal/Api/ComputePreauthorizedTest.php
index f654c44fc85..ef6b4a0d81d 100644
--- a/plugins/woocommerce/tests/php/src/Internal/Api/ComputePreauthorizedTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/Api/ComputePreauthorizedTest.php
@@ -88,7 +88,7 @@ class ComputePreauthorizedTest extends WC_Unit_Test_Case {
/**
* @testdox the autogen-emitted helper ANDs multiple inherited capabilities.
*/
- public function test_autogen_helper_ands_merged_caps(): void {
+ public function test_autogen_helper_and_merged_caps(): void {
// The MergedCapsQuery requires manage_options AND edit_posts.
// `editor` has edit_posts but not manage_options.
$admin = $this->principal_with_role( 'administrator' );
diff --git a/plugins/woocommerce/tests/php/src/Internal/DataStores/Orders/LegacyDataCleanupTests.php b/plugins/woocommerce/tests/php/src/Internal/DataStores/Orders/LegacyDataCleanupTests.php
index 35dc6a76cc8..a2f0bb09a42 100644
--- a/plugins/woocommerce/tests/php/src/Internal/DataStores/Orders/LegacyDataCleanupTests.php
+++ b/plugins/woocommerce/tests/php/src/Internal/DataStores/Orders/LegacyDataCleanupTests.php
@@ -68,7 +68,7 @@ class LegacyDataCleanupTests extends \WC_Unit_Test_Case {
/**
* Tests that the batch processor is correctly enqueued and removed when the option is updated.
*/
- public function test_batch_process_enqueing() {
+ public function test_batch_process_enqueuing() {
$batch_processing = wc_get_container()->get( BatchProcessingController::class );
$this->toggle_cot_authoritative( true );
diff --git a/plugins/woocommerce/tests/php/src/Internal/DataStores/Orders/OrdersTableDataStoreTests.php b/plugins/woocommerce/tests/php/src/Internal/DataStores/Orders/OrdersTableDataStoreTests.php
index f36e0a78a12..1cbbcd84aed 100644
--- a/plugins/woocommerce/tests/php/src/Internal/DataStores/Orders/OrdersTableDataStoreTests.php
+++ b/plugins/woocommerce/tests/php/src/Internal/DataStores/Orders/OrdersTableDataStoreTests.php
@@ -3058,7 +3058,7 @@ class OrdersTableDataStoreTests extends \HposTestCase {
}
/**
- * Helper function to simulate adding meta withing a adding meta callback.
+ * Helper function to simulate adding meta within a adding meta callback.
* @param int $meta_id Meta ID.
* @param int $post_id Post ID.
* @param string $meta_key Meta key.
diff --git a/plugins/woocommerce/tests/php/src/Internal/Email/OrderPriceFormatterTest.php b/plugins/woocommerce/tests/php/src/Internal/Email/OrderPriceFormatterTest.php
index 4a8fc3680ea..b1b5c27bf96 100644
--- a/plugins/woocommerce/tests/php/src/Internal/Email/OrderPriceFormatterTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/Email/OrderPriceFormatterTest.php
@@ -57,7 +57,7 @@ class OrderPriceFormatterTest extends WC_Unit_Test_Case {
OrderPriceFormatter::get_formatted_item_subtotal( $order, $item, 'incl' )
);
- // Enable tax as a requirement of the "exlucding tax" label to be shown in `wc_price`.
+ // Enable tax as a requirement of the "excluding tax" label to be shown in `wc_price`.
update_option( 'woocommerce_calc_taxes', 'yes' );
// Test with prices including tax and 20% tax rate.
diff --git a/plugins/woocommerce/tests/php/src/Internal/Features/FeaturesControllerTest.php b/plugins/woocommerce/tests/php/src/Internal/Features/FeaturesControllerTest.php
index d4fd3ae10a6..6fbc87c4d5a 100644
--- a/plugins/woocommerce/tests/php/src/Internal/Features/FeaturesControllerTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/Features/FeaturesControllerTest.php
@@ -1349,7 +1349,7 @@ class FeaturesControllerTest extends \WC_Unit_Test_Case {
$this->simulate_inside_before_woocommerce_init_hook();
// Goal: Replace $this->sut's ->plugin_util with a mocked version that
- // doesn't scan the disk, but resolves fake paths for our non-existant plugin.php.
+ // doesn't scan the disk, but resolves fake paths for our non-existent plugin.php.
$plugin_util_mock = $this->getMockBuilder( PluginUtil::class )
->disableOriginalConstructor()
->onlyMethods( array( 'get_wp_plugin_id' ) )
@@ -1393,7 +1393,7 @@ class FeaturesControllerTest extends \WC_Unit_Test_Case {
$this->simulate_inside_before_woocommerce_init_hook();
// Goal: Replace $this->sut's ->plugin_util with a mocked version that
- // doesn't scan the disk, but resolves fake paths for our non-existant plugin.php.
+ // doesn't scan the disk, but resolves fake paths for our non-existent plugin.php.
// Also replace get_woocommerce_aware_plugins to simulate deactivation.
$plugin_util_mock = $this->getMockBuilder( PluginUtil::class )
->disableOriginalConstructor()
diff --git a/plugins/woocommerce/tests/php/src/Internal/ProductFeed/Feed/ProductWalkerTest.php b/plugins/woocommerce/tests/php/src/Internal/ProductFeed/Feed/ProductWalkerTest.php
index 4fe814c8206..4d49c8a48e0 100644
--- a/plugins/woocommerce/tests/php/src/Internal/ProductFeed/Feed/ProductWalkerTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/ProductFeed/Feed/ProductWalkerTest.php
@@ -254,7 +254,7 @@ class ProductWalkerTest extends \WC_Unit_Test_Case {
);
}
- // Memory management: Always start with 90%. Eatch batch takes up 20%.
+ // Memory management: Always start with 90%. Each batch takes up 20%.
$available_memory = 90;
$mock_memory_manager->expects( $this->exactly( $expected_iterations + 1 ) )
->method( 'get_available_memory' )
diff --git a/plugins/woocommerce/tests/php/src/Internal/RestApi/Routes/V4/Products/ProductsControllerTest.php b/plugins/woocommerce/tests/php/src/Internal/RestApi/Routes/V4/Products/ProductsControllerTest.php
index 39283df1719..4bf071989ed 100644
--- a/plugins/woocommerce/tests/php/src/Internal/RestApi/Routes/V4/Products/ProductsControllerTest.php
+++ b/plugins/woocommerce/tests/php/src/Internal/RestApi/Routes/V4/Products/ProductsControllerTest.php
@@ -204,7 +204,7 @@ class ProductsControllerTest extends WC_Unit_Test_Case {
/**
* Get all expected fields.
*
- * @param bool $with_cogs_enabled Ture to get the fields expected when the Cost of Goods Sold feature is enabled.
+ * @param bool $with_cogs_enabled True to get the fields expected when the Cost of Goods Sold feature is enabled.
*/
public function get_expected_response_fields( bool $with_cogs_enabled ) {
$fields = array(
@@ -297,7 +297,7 @@ class ProductsControllerTest extends WC_Unit_Test_Case {
* @testWith [true]
* [false]
*
- * @param bool $with_cogs_enabled Ture test with the Cost of Goods Sold feature enabled.
+ * @param bool $with_cogs_enabled True test with the Cost of Goods Sold feature enabled.
*/
public function test_product_api_get_all_fields( bool $with_cogs_enabled ) {
if ( $with_cogs_enabled ) {
@@ -341,7 +341,7 @@ class ProductsControllerTest extends WC_Unit_Test_Case {
* @testWith [true]
* [false]
*
- * @param bool $with_cogs_enabled Ture test with the Cost of Goods Sold feature enabled.
+ * @param bool $with_cogs_enabled True test with the Cost of Goods Sold feature enabled.
*/
public function test_products_get_each_field_one_by_one( bool $with_cogs_enabled ) {
if ( $with_cogs_enabled ) {
diff --git a/plugins/woocommerce/tests/php/src/Internal/StockNotifications/NotificationTests.php b/plugins/woocommerce/tests/php/src/Internal/StockNotifications/NotificationTests.php
index 41e0257f03a..ce844a9d95c 100644
--- a/plugins/woocommerce/tests/php/src/Internal/StockNotifications/NotificationTests.php
+++ b/plugins/woocommerce/tests/php/src/Internal/StockNotifications/NotificationTests.php
@@ -184,7 +184,7 @@ class NotificationTests extends \WC_Unit_Test_Case {
}
/**
- * Test persistance of the unsubscribe key.
+ * Test persistence of the unsubscribe key.
*/
public function test_unsubscribe_key_persistence() {
$notification = new Notification();
diff --git a/tools/compare-perf/package.json b/tools/compare-perf/package.json
index 752cc6b15bd..c872695a2f9 100644
--- a/tools/compare-perf/package.json
+++ b/tools/compare-perf/package.json
@@ -1,7 +1,7 @@
{
"name": "compare-perf",
"version": "0.0.1",
- "description": "A tool to compare performance accross tow branches in WooCommerce Monorepo.",
+ "description": "A tool to compare performance across two branches in WooCommerce Monorepo.",
"author": "Automattic",
"homepage": "https://github.com/woocommerce/woocommerce",
"license": "GPL-2.0-or-later",
diff --git a/tools/release-posts/package.json b/tools/release-posts/package.json
index 0504dc6526d..08030f77111 100644
--- a/tools/release-posts/package.json
+++ b/tools/release-posts/package.json
@@ -1,7 +1,7 @@
{
"name": "release-posts",
"version": "0.0.1",
- "description": "Automate release post generation for Wordpress plugins",
+ "description": "Automate release post generation for WordPress plugins",
"main": " ",
"scripts": {
"lint": "tsc --noEmit",
diff --git a/tools/storybook/import-wp-css-storybook.sh b/tools/storybook/import-wp-css-storybook.sh
index b9c49c640f6..53200bfbfb4 100755
--- a/tools/storybook/import-wp-css-storybook.sh
+++ b/tools/storybook/import-wp-css-storybook.sh
@@ -25,5 +25,5 @@ then
# The directory is not empty, import css
download_and_extract_css;
else
- echo "Wordpress CSS already imported, pass -f to force an update";
+ echo "WordPress CSS already imported, pass -f to force an update";
fi