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' => 'ден',
'MMK' => 'Ks',
'MNT' => '₮',
- 'MOP' => 'P',
+ 'MOP' => 'MOP$',
'MRU' => 'UM',
'MUR' => '₨',
'MVR' => '.ރ',
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 (ден) — MKD',
MMK: 'Burmese kyat (Ks) — MMK',
MNT: 'Mongolian tögrög (₮) — MNT',
- MOP: 'Macanese pataca (P) — MOP',
+ MOP: 'Macanese pataca (MOP$) — MOP',
MRU: 'Mauritanian ouguiya (UM) — MRU',
MUR: 'Mauritian rupee (₨) — MUR',
MVR: 'Maldivian rufiyaa (.ރ) — MVR',
@@ -267,7 +267,7 @@ export const externalCurrencies = {
MKD: 'Macedonian denar (ден)',
MMK: 'Burmese kyat (Ks)',
MNT: 'Mongolian tögrög (₮)',
- MOP: 'Macanese pataca (P)',
+ MOP: 'Macanese pataca (MOP$)',
MRU: 'Mauritanian ouguiya (UM)',
MUR: 'Mauritian rupee (₨)',
MVR: 'Maldivian rufiyaa (.ރ)',
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$',
_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( '£', get_woocommerce_currency_symbol( 'GBP' ) );
+ $this->assertEquals( 'MOP$', get_woocommerce_currency_symbol( 'MOP' ) );
// Each case.
foreach ( array_keys( get_woocommerce_currencies() ) as $currency_code ) {