Commit 6ead3816fc5 for woocommerce
commit 6ead3816fc59e9c881a9098d78f8707b6ebba5dd
Author: Rostislav Wolný <1082140+costasovo@users.noreply.github.com>
Date: Wed Sep 23 13:16:28 2026 +0200
Stop hiding the Edit excerpt button in the email editor sidebar (#68996)
Stop hiding the Edit excerpt button in the email editor
The rule targeted markup that the DataForm post summary removes, so it
already does nothing with the "Editor Inspector: Use DataForm" experiment
on, and that summary is expected to become the default. Keeping the rule
would leave styling in the stylesheet that nobody can tell is live.
Hiding the button was never necessary: the excerpt holds the email
description, which is merchant-facing only and never reaches a sent email,
so an editable excerpt row is fine. Deleting the rule also makes the
sidebar behave the same on every supported WordPress version.
diff --git a/plugins/woocommerce/changelog/68760-wooplug-7758-email-editor-excerpt-button b/plugins/woocommerce/changelog/68760-wooplug-7758-email-editor-excerpt-button
new file mode 100644
index 00000000000..94a7b4fba35
--- /dev/null
+++ b/plugins/woocommerce/changelog/68760-wooplug-7758-email-editor-excerpt-button
@@ -0,0 +1,4 @@
+Significance: patch
+Type: tweak
+
+Show the "Edit excerpt" button in the email editor sidebar.
diff --git a/plugins/woocommerce/client/admin/client/wp-admin-scripts/email-editor-integration/style.scss b/plugins/woocommerce/client/admin/client/wp-admin-scripts/email-editor-integration/style.scss
index 08004095bd1..1e934aff4c4 100644
--- a/plugins/woocommerce/client/admin/client/wp-admin-scripts/email-editor-integration/style.scss
+++ b/plugins/woocommerce/client/admin/client/wp-admin-scripts/email-editor-integration/style.scss
@@ -28,15 +28,6 @@
}
}
-/*
- There is no easy way to hide the "Edit excerpt" link:
- https://github.com/WordPress/gutenberg/blob/trunk/packages/editor/src/components/post-excerpt/panel.js#L145C5-L145C17
- The button is only hidden when editing patterns and templates.
- */
-.editor-post-excerpt__dropdown button {
- display: none;
-}
-
/*
Review drawer (RSM-143). Hand-rolled right-side drawer rendered via
`createPortal` to `document.body` (the `<PluginArea>` wrapper is