Repository navigation
X-Fields 1.1.0 — Server-side validation
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_inputto 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