Skip to content

v0.5.2 — Fix single-post machine translation

Choose a tag to compare

@oxyc oxyc released this 15 Jun 11:06
· 8 commits to master since this release
dc585f5

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 a WP_Post — the int reached the ACF block dispatcher as new Blocks($post->ID) and threw a TypeError on the null ->ID — and a missing wp-admin/includes/post.php include for get_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