Commit 04389327d5 for woocommerce
commit 04389327d53c56cfaed11c0af2589334221ddf7a
Author: Brian <brian@brianhaas.li>
Date: Mon Nov 17 16:59:57 2025 +0100
Return correct singular version for "Adresses" in My Account Menu Item (#61667)
* return correct plural for "Adresses" in My Account Area
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>
diff --git a/plugins/woocommerce/changelog/61667-patch-10 b/plugins/woocommerce/changelog/61667-patch-10
new file mode 100644
index 0000000000..c824185929
--- /dev/null
+++ b/plugins/woocommerce/changelog/61667-patch-10
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Return correct singular version for "Adresses" in My Account Menu Item
\ No newline at end of file
diff --git a/plugins/woocommerce/includes/wc-account-functions.php b/plugins/woocommerce/includes/wc-account-functions.php
index 4109fd2055..31a137c3e3 100644
--- a/plugins/woocommerce/includes/wc-account-functions.php
+++ b/plugins/woocommerce/includes/wc-account-functions.php
@@ -107,7 +107,7 @@ function wc_get_account_menu_items() {
'dashboard' => __( 'Dashboard', 'woocommerce' ),
'orders' => __( 'Orders', 'woocommerce' ),
'downloads' => __( 'Downloads', 'woocommerce' ),
- 'edit-address' => _n( 'Address', 'Addresses', ( 1 + (int) wc_shipping_enabled() ), 'woocommerce' ),
+ 'edit-address' => _n( 'Address', 'Addresses', ( ! wc_ship_to_billing_address_only() && wc_shipping_enabled() ) ? 2 : 1, 'woocommerce' ),
'payment-methods' => __( 'Payment methods', 'woocommerce' ),
'edit-account' => __( 'Account details', 'woocommerce' ),
'customer-logout' => __( 'Log out', 'woocommerce' ),