Commit 0f856de37c3 for woocommerce
commit 0f856de37c3ec2814ef278ac5ece6bdf83f828fa
Author: Seun Olorunsola <30554163+triple0t@users.noreply.github.com>
Date: Wed Mar 4 09:11:51 2026 +0100
Fix POS emails showing "My WordPress Site" as store name (#63505)
* Skip initial save of POS store name to prevent stale "My WordPress Site" in emails
* Fix lint errors
diff --git a/plugins/woocommerce/changelog/fix-wooprd-2567-pos-store-name-skip-initial-save b/plugins/woocommerce/changelog/fix-wooprd-2567-pos-store-name-skip-initial-save
new file mode 100644
index 00000000000..76238b84ee7
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-wooprd-2567-pos-store-name-skip-initial-save
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Skip initial save of POS store name setting so emails use the current site name instead of the stale "My WordPress Site" default.
diff --git a/plugins/woocommerce/includes/admin/settings/class-wc-settings-point-of-sale.php b/plugins/woocommerce/includes/admin/settings/class-wc-settings-point-of-sale.php
index 03843105a17..da0c8a3e564 100644
--- a/plugins/woocommerce/includes/admin/settings/class-wc-settings-point-of-sale.php
+++ b/plugins/woocommerce/includes/admin/settings/class-wc-settings-point-of-sale.php
@@ -72,12 +72,13 @@ class WC_Settings_Point_Of_Sale extends WC_Settings_Page {
),
array(
- 'title' => __( 'Store name', 'woocommerce' ),
- 'desc' => __( 'The name of your physical store.', 'woocommerce' ),
- 'id' => 'woocommerce_pos_store_name',
- 'default' => PointOfSaleDefaultSettings::get_default_store_name(),
- 'type' => 'text',
- 'css' => 'min-width:300px;',
+ 'title' => __( 'Store name', 'woocommerce' ),
+ 'desc' => __( 'The name of your physical store.', 'woocommerce' ),
+ 'id' => 'woocommerce_pos_store_name',
+ 'default' => PointOfSaleDefaultSettings::get_default_store_name(),
+ 'type' => 'text',
+ 'css' => 'min-width:300px;',
+ 'skip_initial_save' => true,
),
array(