Skip to content

v1.2.1

Choose a tag to compare

@ivanusto ivanusto released this 19 Jul 04:22
· 8 commits to main since this release

Changes

  • Fix: guard against duplicate class declaration when two copies of the plugin are installed side by side
  • Fix: bump "Tested up to" to WordPress 7.0
  • Dev: extend .distignore and silence the Plugin Check warning on the uninstall cleanup query
  • Dev: ship a proper distribution zip (top-level folder zh-to-en-slug) as a release asset
  • Fix HTML entities leaking into slugs by requesting plain-text translations (format=text)
    Fix empty slugs when max length is set too low (clamp to 20-200 with a hard floor)
    Fix PHP notice when saved options were missing a key (defaults merged via wp_parse_args)
    Widen Chinese detection to cover CJK Extension A and the full basic CJK block
    Cache translation results in transients for 7 days to reduce API calls
    Lower API timeout from 15s to 8s so saving never hangs on a slow API
    Add capability check to the API test AJAX endpoint
    API key field now uses a password input
    Add uninstall.php to clean up options and cached translations on removal
    Add cts_allowed_statuses filter; scheduled, pending, and private posts are now processed too
    Modernize register_setting to the args-array signature

Full changelog: https://github.com/ivanusto/zh-to-en-slug/blob/main/readme.txt