v0.5.2 — Fix single-post machine translation
Fixes
- Single-post machine translation (
gds/translations-machine) now works on posts and pages. It previously crashed with two distinct bugs (string translation was unaffected): passing an int post ID where Polylang Pro expects aWP_Post— the int reached the ACF block dispatcher asnew Blocks($post->ID)and threw aTypeErroron the null->ID— and a missingwp-admin/includes/post.phpinclude forget_default_post_to_edit()in the REST/MCP/CLI context. Adds a regression test that reproduces the first bug without needing DeepL. (#27)
Internal
- Undo snapshots promoted from array shapes to typed value classes (#26)
- PHPStan baseline burned down to 0 and level raised 5 → 6 (#24, #25)
Full changelog: v0.5.1...v0.5.2