Commit Graph

12 Commits

Author SHA1 Message Date
Vladimir Bryzgalov c800297c8c test(wpmc S4): lock reset_cache invalidation for page_unic_cache
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 20:06:03 +05:00
Vladimir Bryzgalov b967a3a59f feat(wpmc S4): Helpers::index_town_alt_page_id reads ACF option 2026-05-16 19:22:59 +05:00
Vladimir Bryzgalov d724089b2d feat(wpmc S4): Helpers::page_unic_swap with per-request cache 2026-05-16 19:22:37 +05:00
Vladimir Bryzgalov d122bfacb5 feat(wpmc S4): Helpers::is_routable_path with page_no_rep exclusions 2026-05-16 19:22:01 +05:00
Vladimir Bryzgalov f4184a7777 feat(wpmc S4): Helpers::main_town_slug reads ACF option 2026-05-16 19:21:31 +05:00
Vladimir Bryzgalov 259470ca63 refactor(wpmc S3): get_terms modern signature + REQUEST_URI cleanup
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 20:17:08 +05:00
Vladimir Bryzgalov d8b0d01f1c feat(wpmc S3): procedural wpmc_* API + smoke test
Also fixes PluginBootTest to be order-independent (reset booted flag)
and to expect ShortcodeDmr hook that boot() now wires.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 20:11:47 +05:00
Vladimir Bryzgalov 22099cf1d6 feat(wpmc S3): Helpers::remove_domain_link via parse_url
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 20:04:10 +05:00
Vladimir Bryzgalov 11bd3a06b0 feat(wpmc S3): Helpers::alt_get_field with do_shortcode + filter
Implements alt_get_field(): applies wpmc_alt_get_field_post_id filter for
post_id remapping, guards against missing ACF, runs do_shortcode on string
results, passes arrays/null through unchanged.  4 new tests; full suite
22 tests / 58 assertions green.

Note: Brain Monkey FunctionStub::__construct calls function_exists()
internally; expect() calls must precede when('function_exists')->alias()
in each test to avoid the alias intercepting the stub-creation check and
causing eval redeclaration errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 20:02:57 +05:00
Vladimir Bryzgalov 1f343dfaf2 test(wpmc S3): current_town fallback + filter + memoization coverage
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 19:58:42 +05:00
Vladimir Bryzgalov f81cefefbe feat(wpmc S3): Helpers::current_town URI-match path
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 19:58:19 +05:00
Vladimir Bryzgalov 58838b0c19 feat(wpmc S3): Helpers::get_term_by_slug with per-request cache
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 19:56:54 +05:00