Skip to content

v1.5.0 — /write-lang-file endpoint (no-SSH translation deploy)

Choose a tag to compare

@safebiz safebiz released this 27 May 15:18
· 25 commits to main since this release

Changes

  • New /masterc/v1/write-lang-file endpoint — deploy translation files (.po/.mo/.json/.l10n.php) into wp-content/languages/{plugins,themes}/ via REST. Enables gettext + wp.i18n React string translations on sites without SSH access.
    • Security: strict filename whitelist (translation patterns only), manage_options capability, no path traversal.
  • Includes v1.4.0 changes: /option double-encode fix + litespeed.conf.* whitelist.

Discovered during casaluxc tracking-setup dogfood — SureCookie modal buttons ("Accept All", "Reject All", "Confirm My Choices") are React gettext strings needing JSON i18n files.

🤖 Generated with Claude Code