Commit 49b2fd9cb98 for woocommerce
commit 49b2fd9cb986f739749cf7cc1629edf2b514e903
Author: Allison Levine <1689238+allilevine@users.noreply.github.com>
Date: Tue Oct 13 10:30:53 2026 -0400
[Email Editor] Note the translate_slug_to_color() return change for package consumers (#69766)
Add a changelog note for the translate_slug_to_color() return change
#69617 changed what `translate_slug_to_color()` returns for a palette slug
no origin defines: an empty string rather than the slug itself. The method is
public on three classes and `woocommerce/email-editor` is published to
Packagist, so external consumers can call it.
The change is described in #69617's description, but a Composer consumer reads
the package changelog, not a PR. The entry that shipped is merchant-facing and
says nothing about the return value.
`minor` rather than `patch`, so the version bump reflects a public behavior
change for anyone resolving the package by constraint. Both entries are still
unreleased, so this lands in the same release as the change it describes.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
diff --git a/packages/php/email-editor/changelog/add-translate-slug-to-color-bc-note b/packages/php/email-editor/changelog/add-translate-slug-to-color-bc-note
new file mode 100644
index 00000000000..086e886ad5f
--- /dev/null
+++ b/packages/php/email-editor/changelog/add-translate-slug-to-color-bc-note
@@ -0,0 +1,4 @@
+Significance: minor
+Type: dev
+
+translate_slug_to_color() on Theme_Controller, Settings_Controller and Rendering_Context now returns an empty string for a palette slug no origin defines, rather than the slug itself. Callers should treat an empty string as "omit the declaration".