feat(wpmc S3): ShortcodeDmr::render resolves text by current town

This commit is contained in:
Vladimir Bryzgalov
2026-05-12 20:07:01 +05:00
parent 464d254f1c
commit 0be1a5a08f
3 changed files with 65 additions and 2 deletions
+3
View File
@@ -15,6 +15,9 @@ abstract class TestCase extends BaseTestCase
parent::setUp();
Monkey\setUp();
Monkey\Functions\stubTranslationFunctions();
Monkey\Functions\when('shortcode_atts')->alias(function (array $defaults, array $atts): array {
return array_merge($defaults, array_intersect_key($atts, $defaults));
});
Helpers::reset_cache();
ShortcodeDmr::reset_cache();
}