Commit 054544e7b0d for woocommerce
commit 054544e7b0d1d734fa311b56f3513fb25b47123c
Author: Tony Arcangelini <33258733+arcangelini@users.noreply.github.com>
Date: Tue Feb 24 14:28:40 2026 +0100
Email Editor: remove | from template (#63419)
* Email Editor: remove | from template
* Add changefile(s) from automation for the following project(s): woocommerce
* Add space
* Undo formatting
* Fix comment being stripped
---------
Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>
diff --git a/plugins/woocommerce/changelog/63419-WOOPRD-2474-there-is-a-short-vertical-line-in-the-email b/plugins/woocommerce/changelog/63419-WOOPRD-2474-there-is-a-short-vertical-line-in-the-email
new file mode 100644
index 00000000000..1dd3dbcda52
--- /dev/null
+++ b/plugins/woocommerce/changelog/63419-WOOPRD-2474-there-is-a-short-vertical-line-in-the-email
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+Comment: Email Editor: fix extra character in the customer note template
+
diff --git a/plugins/woocommerce/templates/emails/block/customer-note.php b/plugins/woocommerce/templates/emails/block/customer-note.php
index 3e1614a23e3..157119a8e69 100644
--- a/plugins/woocommerce/templates/emails/block/customer-note.php
+++ b/plugins/woocommerce/templates/emails/block/customer-note.php
@@ -12,7 +12,7 @@
*
* @see https://woocommerce.com/document/template-structure/
* @package WooCommerce\Templates\Emails\Block
- * @version 10.6.0
+ * @version 10.7.0
*/
use Automattic\WooCommerce\Internal\EmailEditor\BlockEmailRenderer;
@@ -41,7 +41,7 @@ defined( 'ABSPATH' ) || exit;
<!-- wp:quote {"lock":{"move":false,"remove":true}} -->
<blockquote class="wp-block-quote">
<!-- wp:paragraph {"lock":{"move":false,"remove":true}} -->
-<p> <?php echo '| <!--[woocommerce/admin-order-note]--> |'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </p>
+<p> <?php echo '<!--[woocommerce/admin-order-note]--> '; // The non-breaking space is used to prevent the comment from being removed by the email editor. ?> </p>
<!-- /wp:paragraph -->
</blockquote>
<!-- /wp:quote -->