Skip to content

X-Fields 1.1.0 — Server-side validation

Choose a tag to compare

@github-actions github-actions released this 16 Nov 14:44
· 5 commits to main since this release

Added

  • Server-side validation of required fields and min/max limits (Relationship, Term, User, Loop), including fields inside Loop rows. Browser checks can be bypassed; the server now enforces them.
    • Front-end forms: invalid submissions are rejected with a list of errors (nothing is saved).
    • Admin: the post is always saved (no lost work); when publishing, a notice lists the fields that need attention. Drafts are not validated, as in the browser.
    • New filter xf_validate_input to add custom rules.

Security

  • All translatable strings are escaped on output (esc_html_e, esc_attr_e, esc_html__).
  • WYSIWYG default values are escaped in the editor textarea.
  • Input handling uses wp_unslash() + sanitization everywhere it is safe; remaining raw reads are documented.

Changed

  • PHPCS (WordPress security + PHP compatibility) now reports 0 warnings (was 136) and the CI fails on any new warning.
  • Test suite: 42 checks; test data is cleaned up even if a test crashes.

Install: download x-fields-v1.1.0.zip below and upload it from Plugins → Add New → Upload. Requires WordPress 6.0+ and PHP 7.4+.

Full changelog: v1.0.1...v1.1.0