Commit 65b5eb18192 for woocommerce

commit 65b5eb18192a509a46a9169d41c66516ea0cd4c4
Author: Cvetan Cvetanov <cvetan.cvetanov@automattic.com>
Date:   Mon Jul 27 13:50:20 2026 +0300

    Fix Macanese pataca currency symbol (#66716)

    * Fix Macanese pataca currency symbol

    * Add changelog entry for Macanese pataca symbol

    * Update MOP currencies API expectation

diff --git a/plugins/woocommerce/changelog/fix-43351-macao-currency-symbol b/plugins/woocommerce/changelog/fix-43351-macao-currency-symbol
new file mode 100644
index 00000000000..11d86d369b0
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-43351-macao-currency-symbol
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Correct the Macanese pataca currency symbol to MOP$.
diff --git a/plugins/woocommerce/includes/wc-core-functions.php b/plugins/woocommerce/includes/wc-core-functions.php
index 1d0d074da7d..3d65e931800 100644
--- a/plugins/woocommerce/includes/wc-core-functions.php
+++ b/plugins/woocommerce/includes/wc-core-functions.php
@@ -628,7 +628,7 @@ function get_woocommerce_currency_symbols() {
 			'MKD' => '&#x434;&#x435;&#x43d;',
 			'MMK' => 'Ks',
 			'MNT' => '&#x20ae;',
-			'MOP' => 'P',
+			'MOP' => 'MOP&#36;',
 			'MRU' => 'UM',
 			'MUR' => '&#x20a8;',
 			'MVR' => '.&#x783;',
diff --git a/plugins/woocommerce/tests/e2e/data/settings.ts b/plugins/woocommerce/tests/e2e/data/settings.ts
index 66b5c5a325a..d7b107b675d 100644
--- a/plugins/woocommerce/tests/e2e/data/settings.ts
+++ b/plugins/woocommerce/tests/e2e/data/settings.ts
@@ -102,7 +102,7 @@ export const currencies = {
 	MKD: 'Macedonian denar (&#x434;&#x435;&#x43d;) — MKD',
 	MMK: 'Burmese kyat (Ks) — MMK',
 	MNT: 'Mongolian t&ouml;gr&ouml;g (&#x20ae;) — MNT',
-	MOP: 'Macanese pataca (P) — MOP',
+	MOP: 'Macanese pataca (MOP&#36;) — MOP',
 	MRU: 'Mauritanian ouguiya (UM) — MRU',
 	MUR: 'Mauritian rupee (&#x20a8;) — MUR',
 	MVR: 'Maldivian rufiyaa (.&#x783;) — MVR',
@@ -267,7 +267,7 @@ export const externalCurrencies = {
 	MKD: 'Macedonian denar (&#x434;&#x435;&#x43d;)',
 	MMK: 'Burmese kyat (Ks)',
 	MNT: 'Mongolian t&ouml;gr&ouml;g (&#x20ae;)',
-	MOP: 'Macanese pataca (P)',
+	MOP: 'Macanese pataca (MOP&#36;)',
 	MRU: 'Mauritanian ouguiya (UM)',
 	MUR: 'Mauritian rupee (&#x20a8;)',
 	MVR: 'Maldivian rufiyaa (.&#x783;)',
diff --git a/plugins/woocommerce/tests/e2e/tests/api-tests/data/data-crud.test.ts b/plugins/woocommerce/tests/e2e/tests/api-tests/data/data-crud.test.ts
index dcd7fefb896..2ce4f0839af 100644
--- a/plugins/woocommerce/tests/e2e/tests/api-tests/data/data-crud.test.ts
+++ b/plugins/woocommerce/tests/e2e/tests/api-tests/data/data-crud.test.ts
@@ -6521,7 +6521,7 @@ test.describe( 'Data API tests', () => {
 				expect.objectContaining( {
 					code: 'MOP',
 					name: 'Macanese pataca',
-					symbol: 'P',
+					symbol: 'MOP&#36;',
 					_links: {
 						self: [
 							{
diff --git a/plugins/woocommerce/tests/legacy/unit-tests/util/class-wc-tests-core-functions.php b/plugins/woocommerce/tests/legacy/unit-tests/util/class-wc-tests-core-functions.php
index 18281f2c93b..b598d649690 100644
--- a/plugins/woocommerce/tests/legacy/unit-tests/util/class-wc-tests-core-functions.php
+++ b/plugins/woocommerce/tests/legacy/unit-tests/util/class-wc-tests-core-functions.php
@@ -217,7 +217,7 @@ class WC_Tests_Core_Functions extends WC_Unit_Test_Case {
 	}

 	/**
-	 * Test get_woocommerce_currency_symbol().
+	 * @testdox Should return the requested WooCommerce currency symbol.
 	 *
 	 * @since 2.2
 	 */
@@ -228,6 +228,7 @@ class WC_Tests_Core_Functions extends WC_Unit_Test_Case {

 		// Given specific currency.
 		$this->assertEquals( '&pound;', get_woocommerce_currency_symbol( 'GBP' ) );
+		$this->assertEquals( 'MOP&#36;', get_woocommerce_currency_symbol( 'MOP' ) );

 		// Each case.
 		foreach ( array_keys( get_woocommerce_currencies() ) as $currency_code ) {