Commit d1593a5d59 for woocommerce
commit d1593a5d59160221f4ef1f23a16f1d0d17ca36f0
Author: Alexandre Khoury <alexandre.khoury.dev@gmail.com>
Date: Mon Jan 26 22:54:47 2026 +0200
Fix typo for Kurdistan in states.php (#60337)
* Fix typo for Kurdistan in states.php
* Add changelog entry for Kurdistan state formatting fix
* Update test data for Kurdistan state name fix
Update API test data to match the corrected Kurdistan state formatting
from "Kurdistan / کردستان)" to "Kurdistan (کردستان)" to align with
the fix in states.php.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Update Kurdistan state in settings test data
Fix the second location where Kurdistan test data had the old typo
format in the stateOptions object used by settings API tests.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Michael Pretty <prettyboymp@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
diff --git a/plugins/woocommerce/changelog/60337-fix-kurdistan-state-format b/plugins/woocommerce/changelog/60337-fix-kurdistan-state-format
new file mode 100644
index 0000000000..0d769903da
--- /dev/null
+++ b/plugins/woocommerce/changelog/60337-fix-kurdistan-state-format
@@ -0,0 +1,4 @@
+Significance: patch
+Type: tweak
+
+Fix Kurdistan state name formatting in Iranian provinces to use parentheses like all other states
\ No newline at end of file
diff --git a/plugins/woocommerce/i18n/states.php b/plugins/woocommerce/i18n/states.php
index a376786198..88bb99e1d9 100644
--- a/plugins/woocommerce/i18n/states.php
+++ b/plugins/woocommerce/i18n/states.php
@@ -867,7 +867,7 @@ return array(
'SMN' => __( 'Semnan (سمنان)', 'woocommerce' ),
'FRS' => __( 'Fars (فارس)', 'woocommerce' ),
'QHM' => __( 'Qom (قم)', 'woocommerce' ),
- 'KRD' => __( 'Kurdistan / کردستان)', 'woocommerce' ),
+ 'KRD' => __( 'Kurdistan (کردستان)', 'woocommerce' ),
'KBD' => __( 'Kohgiluyeh and BoyerAhmad (کهگیلوییه و بویراحمد)', 'woocommerce' ),
'GLS' => __( 'Golestan (گلستان)', 'woocommerce' ),
'GIL' => __( 'Gilan (گیلان)', 'woocommerce' ),
diff --git a/plugins/woocommerce/tests/e2e-pw/data/countries/ir.json b/plugins/woocommerce/tests/e2e-pw/data/countries/ir.json
index 6508527fd1..e258e19623 100644
--- a/plugins/woocommerce/tests/e2e-pw/data/countries/ir.json
+++ b/plugins/woocommerce/tests/e2e-pw/data/countries/ir.json
@@ -96,7 +96,7 @@
},
{
"code": "KRD",
- "name": "Kurdistan / کردستان)"
+ "name": "Kurdistan (کردستان)"
},
{
"code": "KBD",
diff --git a/plugins/woocommerce/tests/e2e-pw/data/settings.js b/plugins/woocommerce/tests/e2e-pw/data/settings.js
index 6b233922ac..3127f8efec 100644
--- a/plugins/woocommerce/tests/e2e-pw/data/settings.js
+++ b/plugins/woocommerce/tests/e2e-pw/data/settings.js
@@ -1095,7 +1095,7 @@ const stateOptions = {
'IR:SMN': 'Iran - Semnan (سمنان)',
'IR:FRS': 'Iran - Fars (فارس)',
'IR:QHM': 'Iran - Qom (قم)',
- 'IR:KRD': 'Iran - Kurdistan / کردستان)',
+ 'IR:KRD': 'Iran - Kurdistan (کردستان)',
'IR:KBD': 'Iran - Kohgiluyeh and BoyerAhmad (کهگیلوییه و بویراحمد)',
'IR:GLS': 'Iran - Golestan (گلستان)',
'IR:GIL': 'Iran - Gilan (گیلان)',