Commit 55dc0b787d8 for woocommerce
commit 55dc0b787d80d87e4e09b8b6c2b6232c32529a4a
Author: woocommercebot <30233865+woocommercebot@users.noreply.github.com>
Date: Fri Dec 4 03:39:08 2026 +0700
Prepare Packages for Release (#71822)
* Automated change: Prep @woocommerce/email-editor-config for release.
* Email Editor: Use 3.0.0 for deprecations and the new image filter
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>
Co-authored-by: Allison Levine <allison.levine@automattic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
diff --git a/packages/php/email-editor/changelog.md b/packages/php/email-editor/changelog.md
index 9b0adb6e481..715d778aa1c 100644
--- a/packages/php/email-editor/changelog.md
+++ b/packages/php/email-editor/changelog.md
@@ -2,6 +2,31 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [3.0.0](https://github.com/woocommerce/email-editor/releases/tag/3.0.0) - 2026-12-03
+
+- Patch - Add space between paragraphs from the Classic editor, Custom HTML blocks, and shortcodes in emails. [#71386]
+- Patch - Add space between the first and second paragraphs of Classic editor posts in emails. [#71675]
+- Patch - Cap images resized wider than their column at the column width, so Columns blocks keep their split in emails. [#71676]
+- Patch - Fit Columns blocks whose column widths add up to more than 100% within the email, instead of rendering too wide. [#71063]
+- Patch - Fix emails using the first site's styles when several sites of a network render emails in one request. [#71500]
+- Patch - Honor the Gallery block’s Crop images to fit setting for mixed-shape rows in emails. The `woocommerce_email_editor_gallery_cropped_image_url` filter now also runs for those rows, with a ratio taken from the row’s tallest image (such as `683/1024`). It skips rows where fewer than two image ratios can be read, or where the ratios differ by 1% or less. [#71511]
+- Patch - In block email product collections, hide catalog-hidden products, apply exclusions to picked products, and use current sales. [#70856]
+- Patch - Keep emails out of the /random/ link that WordPress 7.2 adds, so visitors are not sent to an email page. [#71496]
+- Patch - Keep Media & Text images within their column so emails no longer render too wide or with tiny text in Gmail on Android. [#71054]
+- Patch - Keep the text after a “<” in email preheaders. [#70817]
+- Patch - Leave out email blocks that show nothing, such as Custom HTML holding only a style tag, so they add no blank gap. [#71285]
+- Patch - Pass tag attribute values with quotes, ampersands or brackets correctly. HTML tags in HTML content still get them escaped for HTML. [#70904]
+- Patch - Render emails containing a block whose style attribute is a string, such as a Calendly embed, instead of failing. [#71388]
+- Patch - Show personalization tags that return HTML as plain text in plain-text emails, subjects and preheaders. Value interceptors receive the converted text. [#70817]
+- Patch - Stop a PHP warning when block settings without a block name reach the email editor's block settings filter. [#70907]
+- Patch - Use the email’s own colors when a site theme color is one email clients can’t show, such as Twenty Twenty-Five’s Accent 6. [#70869]
+- Patch - Wrap long lines in code, verse and table blocks, and give table columns an equal share of the width, so an email no longer scrolls sideways. [#70892]
+- Minor - Add a filter that lets image CDNs serve cropped files for Image blocks in emails. [#71064]
+- Minor - Add Personalizer::personalize_rich_text_as_plain_text() to personalize a rich-text subject or preheader as plain text. [#70817]
+- Patch - Outline the template blocks around the email content in purple on hover and selection in the editor. [#71534]
+- Major [ **BREAKING CHANGE** ] - Require WordPress 7.0 or newer: Dependency_Check::are_dependencies_met() now returns false on older versions. [#71322]
+- Minor - Stop applying element styles from the legacy `woocommerce_email_theme` post meta, and deprecate `Email_Editor::extend_email_theme_styles()` and `Email_Editor::WOOCOMMERCE_EMAIL_META_THEME_TYPE`. [#71319]
+
## [2.20.1](https://github.com/woocommerce/email-editor/releases/tag/2.20.1) - 2026-11-11
- Patch - Keep an image's aspect ratio in Outlook when the email shrinks it to fit the content width. [#70867]
diff --git a/packages/php/email-editor/changelog/add-personalize-rich-text-as-plain-text b/packages/php/email-editor/changelog/add-personalize-rich-text-as-plain-text
deleted file mode 100644
index 8e7d0d8c83b..00000000000
--- a/packages/php/email-editor/changelog/add-personalize-rich-text-as-plain-text
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: minor
-Type: add
-
-Add Personalizer::personalize_rich_text_as_plain_text() to personalize a rich-text subject or preheader as plain text.
diff --git a/packages/php/email-editor/changelog/email-editor-php-test-coverage b/packages/php/email-editor/changelog/email-editor-php-test-coverage
deleted file mode 100644
index 00946e7942f..00000000000
--- a/packages/php/email-editor/changelog/email-editor-php-test-coverage
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: dev
-Comment: Add email editor package tests for the validator, version check, fallback renderer and MailPoet contract; no production change.
-
diff --git a/packages/php/email-editor/changelog/fix-email-gallery-image-crop b/packages/php/email-editor/changelog/fix-email-gallery-image-crop
deleted file mode 100644
index f52ed43091a..00000000000
--- a/packages/php/email-editor/changelog/fix-email-gallery-image-crop
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Honor the Gallery block’s Crop images to fit setting for mixed-shape rows in emails. The `woocommerce_email_editor_gallery_cropped_image_url` filter now also runs for those rows, with a ratio taken from the row’s tallest image (such as `683/1024`). It skips rows where fewer than two image ratios can be read, or where the ratios differ by 1% or less.
diff --git a/packages/php/email-editor/changelog/fix-email-post-types-randomable b/packages/php/email-editor/changelog/fix-email-post-types-randomable
deleted file mode 100644
index 192ed955de9..00000000000
--- a/packages/php/email-editor/changelog/fix-email-post-types-randomable
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Keep emails out of the /random/ link that WordPress 7.2 adds, so visitors are not sent to an email page.
diff --git a/packages/php/email-editor/changelog/fix-email-product-collection-query b/packages/php/email-editor/changelog/fix-email-product-collection-query
deleted file mode 100644
index 561ee57c97e..00000000000
--- a/packages/php/email-editor/changelog/fix-email-product-collection-query
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-In block email product collections, hide catalog-hidden products, apply exclusions to picked products, and use current sales.
diff --git a/packages/php/email-editor/changelog/fix-embed-test-dns-flakiness b/packages/php/email-editor/changelog/fix-embed-test-dns-flakiness
deleted file mode 100644
index b3dfa4f4803..00000000000
--- a/packages/php/email-editor/changelog/fix-embed-test-dns-flakiness
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: dev
-Comment: Make email editor embed thumbnail tests independent of DNS; no production change.
-
diff --git a/packages/php/email-editor/changelog/fix-nl-1007-wrap-code-table-verse b/packages/php/email-editor/changelog/fix-nl-1007-wrap-code-table-verse
deleted file mode 100644
index 85725225fcd..00000000000
--- a/packages/php/email-editor/changelog/fix-nl-1007-wrap-code-table-verse
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Wrap long lines in code, verse and table blocks, and give table columns an equal share of the width, so an email no longer scrolls sideways.
diff --git a/packages/php/email-editor/changelog/fix-nl-1151-image-aspect-ratio-crop b/packages/php/email-editor/changelog/fix-nl-1151-image-aspect-ratio-crop
deleted file mode 100644
index 54a1ecd6d01..00000000000
--- a/packages/php/email-editor/changelog/fix-nl-1151-image-aspect-ratio-crop
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: minor
-Type: add
-
-Add a filter that lets image CDNs serve cropped files for Image blocks in emails.
diff --git a/packages/php/email-editor/changelog/fix-nl-1192-overwide-columns b/packages/php/email-editor/changelog/fix-nl-1192-overwide-columns
deleted file mode 100644
index e3c209056f7..00000000000
--- a/packages/php/email-editor/changelog/fix-nl-1192-overwide-columns
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Fit Columns blocks whose column widths add up to more than 100% within the email, instead of rendering too wide.
diff --git a/packages/php/email-editor/changelog/fix-nl-1193-string-style-attribute b/packages/php/email-editor/changelog/fix-nl-1193-string-style-attribute
deleted file mode 100644
index 90ca2924a07..00000000000
--- a/packages/php/email-editor/changelog/fix-nl-1193-string-style-attribute
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Render emails containing a block whose style attribute is a string, such as a Calendly embed, instead of failing.
diff --git a/packages/php/email-editor/changelog/fix-nl-1197-cap-resized-images b/packages/php/email-editor/changelog/fix-nl-1197-cap-resized-images
deleted file mode 100644
index febbd48141f..00000000000
--- a/packages/php/email-editor/changelog/fix-nl-1197-cap-resized-images
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Cap images resized wider than their column at the column width, so Columns blocks keep their split in emails.
diff --git a/packages/php/email-editor/changelog/fix-nl-1209-skip-empty-blocks b/packages/php/email-editor/changelog/fix-nl-1209-skip-empty-blocks
deleted file mode 100644
index 2c073a2b8da..00000000000
--- a/packages/php/email-editor/changelog/fix-nl-1209-skip-empty-blocks
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Leave out email blocks that show nothing, such as Custom HTML holding only a style tag, so they add no blank gap.
diff --git a/packages/php/email-editor/changelog/fix-nl-1235-classic-first-paragraph b/packages/php/email-editor/changelog/fix-nl-1235-classic-first-paragraph
deleted file mode 100644
index 2c532ae8243..00000000000
--- a/packages/php/email-editor/changelog/fix-nl-1235-classic-first-paragraph
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Add space between the first and second paragraphs of Classic editor posts in emails.
diff --git a/packages/php/email-editor/changelog/fix-nl-859-unrenderable-site-colors b/packages/php/email-editor/changelog/fix-nl-859-unrenderable-site-colors
deleted file mode 100644
index 89160ab9811..00000000000
--- a/packages/php/email-editor/changelog/fix-nl-859-unrenderable-site-colors
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Use the email’s own colors when a site theme color is one email clients can’t show, such as Twenty Twenty-Five’s Accent 6.
diff --git a/packages/php/email-editor/changelog/fix-nl-985-media-text-image-width b/packages/php/email-editor/changelog/fix-nl-985-media-text-image-width
deleted file mode 100644
index 67502250ba9..00000000000
--- a/packages/php/email-editor/changelog/fix-nl-985-media-text-image-width
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Keep Media & Text images within their column so emails no longer render too wide or with tiny text in Gmail on Android.
diff --git a/packages/php/email-editor/changelog/fix-nl-998-classic-paragraph-gap b/packages/php/email-editor/changelog/fix-nl-998-classic-paragraph-gap
deleted file mode 100644
index 7ac03f87c2b..00000000000
--- a/packages/php/email-editor/changelog/fix-nl-998-classic-paragraph-gap
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Add space between paragraphs from the Classic editor, Custom HTML blocks, and shortcodes in emails.
diff --git a/packages/php/email-editor/changelog/fix-stomail-8802-email-editor-block-name-warning b/packages/php/email-editor/changelog/fix-stomail-8802-email-editor-block-name-warning
deleted file mode 100644
index 45bc81e16c0..00000000000
--- a/packages/php/email-editor/changelog/fix-stomail-8802-email-editor-block-name-warning
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Stop a PHP warning when block settings without a block name reach the email editor's block settings filter.
diff --git a/packages/php/email-editor/changelog/fix-wooplug-8121-tag-attribute-entities b/packages/php/email-editor/changelog/fix-wooplug-8121-tag-attribute-entities
deleted file mode 100644
index 470a4e9d87c..00000000000
--- a/packages/php/email-editor/changelog/fix-wooplug-8121-tag-attribute-entities
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Pass tag attribute values with quotes, ampersands or brackets correctly. HTML tags in HTML content still get them escaped for HTML.
diff --git a/packages/php/email-editor/changelog/fix-wooplug-8122-html-tag-values-plain-text b/packages/php/email-editor/changelog/fix-wooplug-8122-html-tag-values-plain-text
deleted file mode 100644
index 4e3c438bb7c..00000000000
--- a/packages/php/email-editor/changelog/fix-wooplug-8122-html-tag-values-plain-text
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Show personalization tags that return HTML as plain text in plain-text emails, subjects and preheaders. Value interceptors receive the converted text.
diff --git a/packages/php/email-editor/changelog/fix-wooplug-8122-preheader-plain-text b/packages/php/email-editor/changelog/fix-wooplug-8122-preheader-plain-text
deleted file mode 100644
index ca7c34f5356..00000000000
--- a/packages/php/email-editor/changelog/fix-wooplug-8122-preheader-plain-text
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Keep the text after a “<” in email preheaders.
diff --git a/packages/php/email-editor/changelog/remove-email-editor-dead-theme-meta b/packages/php/email-editor/changelog/remove-email-editor-dead-theme-meta
deleted file mode 100644
index 18e35fe85f8..00000000000
--- a/packages/php/email-editor/changelog/remove-email-editor-dead-theme-meta
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: minor
-Type: update
-
-Stop applying element styles from the legacy `woocommerce_email_theme` post meta, and deprecate `Email_Editor::extend_email_theme_styles()` and `Email_Editor::WOOCOMMERCE_EMAIL_META_THEME_TYPE`.
diff --git a/packages/php/email-editor/changelog/update-stomail-8783-template-area-toolbar b/packages/php/email-editor/changelog/update-stomail-8783-template-area-toolbar
deleted file mode 100644
index 3f26fff6fd7..00000000000
--- a/packages/php/email-editor/changelog/update-stomail-8783-template-area-toolbar
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: update
-
-Outline the template blocks around the email content in purple on hover and selection in the editor.
diff --git a/packages/php/email-editor/changelog/wooplug-8228-email-editor-raise-the-minimum-wordpress b/packages/php/email-editor/changelog/wooplug-8228-email-editor-raise-the-minimum-wordpress
deleted file mode 100644
index 8b0fa52830e..00000000000
--- a/packages/php/email-editor/changelog/wooplug-8228-email-editor-raise-the-minimum-wordpress
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: major
-Type: update
-
-Require WordPress 7.0 or newer: Dependency_Check::are_dependencies_met() now returns false on older versions.
diff --git a/packages/php/email-editor/changelog/wooplug-8342-email-editor-uses-the-first-sites-styles-for b/packages/php/email-editor/changelog/wooplug-8342-email-editor-uses-the-first-sites-styles-for
deleted file mode 100644
index f2b3a23ad7d..00000000000
--- a/packages/php/email-editor/changelog/wooplug-8342-email-editor-uses-the-first-sites-styles-for
+++ /dev/null
@@ -1,4 +0,0 @@
-Significance: patch
-Type: fix
-
-Fix emails using the first site's styles when several sites of a network render emails in one request.
diff --git a/packages/php/email-editor/composer.json b/packages/php/email-editor/composer.json
index 5839c685b18..23fd84db6de 100644
--- a/packages/php/email-editor/composer.json
+++ b/packages/php/email-editor/composer.json
@@ -5,7 +5,7 @@
"license": "GPL-2.0-or-later",
"prefer-stable": true,
"minimum-stability": "dev",
- "version": "2.20.1",
+ "version": "3.0.0",
"autoload": {
"classmap": [
"src/",
diff --git a/packages/php/email-editor/composer.lock b/packages/php/email-editor/composer.lock
index 9300b1b5f4c..ead7ba90923 100644
--- a/packages/php/email-editor/composer.lock
+++ b/packages/php/email-editor/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "6c47722cb17980aef4dc5cb5425c9291",
+ "content-hash": "0ffb011f83cbf7cd813618732299f0b0",
"packages": [],
"packages-dev": [
{
@@ -3608,5 +3608,5 @@
"platform-overrides": {
"php": "7.4"
},
- "plugin-api-version": "2.9.0"
+ "plugin-api-version": "2.11.0"
}
diff --git a/packages/php/email-editor/src/Engine/class-email-editor.php b/packages/php/email-editor/src/Engine/class-email-editor.php
index 871c8472407..03b0f8e8800 100644
--- a/packages/php/email-editor/src/Engine/class-email-editor.php
+++ b/packages/php/email-editor/src/Engine/class-email-editor.php
@@ -26,7 +26,7 @@ class Email_Editor {
/**
* Post meta key for per-email theme styles. Nothing writes this meta; email styles live in User_Theme.
*
- * @deprecated 2.21.0
+ * @deprecated 3.0.0
*/
public const WOOCOMMERCE_EMAIL_META_THEME_TYPE = 'woocommerce_email_theme';
@@ -407,14 +407,14 @@ class Email_Editor {
/**
* Extends the email theme styles with the email specific styles.
*
- * @deprecated 2.21.0 Email styles live in User_Theme, so there is nothing to merge.
+ * @deprecated 3.0.0 Email styles live in User_Theme, so there is nothing to merge.
*
* @param WP_Theme_JSON $theme Email theme styles.
* @param WP_Post $post Email post object.
* @return WP_Theme_JSON
*/
public function extend_email_theme_styles( WP_Theme_JSON $theme, WP_Post $post ): WP_Theme_JSON {
- _deprecated_function( __METHOD__, '2.21.0' );
+ _deprecated_function( __METHOD__, '3.0.0' );
$email_theme = get_post_meta( $post->ID, self::WOOCOMMERCE_EMAIL_META_THEME_TYPE, true );
if ( $email_theme && is_array( $email_theme ) ) {
$theme->merge( new WP_Theme_JSON( $email_theme ) );
diff --git a/packages/php/email-editor/src/Integrations/Core/Renderer/Blocks/class-image.php b/packages/php/email-editor/src/Integrations/Core/Renderer/Blocks/class-image.php
index 99cea077402..e49834b4b88 100644
--- a/packages/php/email-editor/src/Integrations/Core/Renderer/Blocks/class-image.php
+++ b/packages/php/email-editor/src/Integrations/Core/Renderer/Blocks/class-image.php
@@ -476,7 +476,7 @@ class Image extends Abstract_Block_Renderer {
* Takes the same arguments as `woocommerce_email_editor_gallery_cropped_image_url`, so one
* callback can serve both. Return the URL unchanged to keep the uncropped image.
*
- * @since 2.21.0
+ * @since 3.0.0
*
* @param string $image_url The original image URL.
* @param string $aspect_ratio The block's aspect ratio (e.g. "1", "4/3").
diff --git a/plugins/woocommerce/composer.lock b/plugins/woocommerce/composer.lock
index abfddf4902e..30b92770bd2 100644
--- a/plugins/woocommerce/composer.lock
+++ b/plugins/woocommerce/composer.lock
@@ -1278,11 +1278,11 @@
},
{
"name": "woocommerce/email-editor",
- "version": "2.20.1",
+ "version": "3.0.0",
"dist": {
"type": "path",
"url": "../../packages/php/email-editor",
- "reference": "489a567f94beaee54eeb8832593a343293e5e33b"
+ "reference": "29f3ccaf17345e39056a1c7564d3c93f1150fc16"
},
"require": {
"php": ">=7.4"
@@ -1344,6 +1344,9 @@
"test:integration": [
"wp-env run tests-cli --env-cwd=wp-content/plugins/email-editor ./vendor/bin/phpunit --configuration phpunit-integration.xml.dist"
],
+ "test:integration:multisite": [
+ "wp-env run tests-cli --env-cwd=wp-content/plugins/email-editor env WP_MULTISITE=1 ./vendor/bin/phpunit --configuration phpunit-integration.xml.dist --group ms-required"
+ ],
"phpcs": [
"phpcs -s -p"
],