Skip to content

Fix: guard determine_locale() in the runner (v1.4.1) - #17

Merged
ogorzalka merged 1 commit into
mainfrom
fix/async-locale-guard
Oct 7, 2026
Merged

ogorzalka merged 1 commit into
mainfrom
fix/async-locale-guard

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Fix found by the framework suite (Async Actions phase 3).

The runner checked function_exists('switch_to_locale') but also called determine_locale(). In the framework suite, a test defines the former without the latter, and the runner failed with Call to undefined function determine_locale(). Both functions always exist in a real WordPress, but the guard now covers both calls.

Released as v1.4.1 (CHANGELOG dated). Unit suite: 254 passed.

@ogorzalka
ogorzalka merged commit fcdb211 into main Oct 7, 2026
5 checks passed
@ogorzalka
ogorzalka deleted the fix/async-locale-guard branch October 7, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant