Repository navigation
X-Fields 1.0.0 — First release
First release of X-Fields, forked from Custom Field Suite 2.6.7.
Changed
- Renamed to X-Fields:
CFS()→XF(), prefixcfs_→xf_(classes, hooks, options, tables, CSS/JS), text domainx-fields, field group post typexf_group. - Redesigned admin interface: field rows with drag handle, field name chips and type badges, icon actions, empty state, cleaner placement rules, repeater rows and two-column pickers. The accent color follows the user's admin color scheme. Responsive on small screens.
- Redesigned Tools page (export / import / reset).
- Minimum requirements: WordPress 6.0, PHP 7.4.
Added
- Automatic one-time migration from Custom Field Suite (field groups, values, field ID counter). CFS tables are kept as a backup.
- Polylang integration: field groups are never translated; values are copied when a translation is created.
uninstall.php: data is kept unlessXF_REMOVE_ALL_DATAis defined.- Smoke/security test suite (
tests/smoke-test.php), PHPCS configuration and GitHub Actions CI.
Security
- Removed
eval()in the Loop field (remote code execution through crafted row keys). - Fixed SQL injection in Relationship / Term / User fields and in
get_reverse_related(). - Form sessions use
random_bytes()and are bound to the user; admin saves requireedit_post. - Front-end title/content and field values are filtered with KSES for users without
unfiltered_html. - Field group saves check post type and capability; names, labels, rules and extras are sanitized; forged field IDs can no longer hijack other groups.
- Hardened import/export;
unserialize()never instantiates objects; escaped output across admin screens. - Hyperlink URLs sanitized,
targetwhitelisted,rel="noopener noreferrer"on_blank.
Fixed
- PHP 8.x fatal errors,
TypeErrors, undefined index/property warnings and dynamic property deprecations. - Reset now actually deactivates the plugin.
- Relationship field listed the wrong post types when none were selected.
- File field ignored the "File Type" option.
- "Insert row" in Loop fields targeted the first loop on the page.
- Search filters crashed on regex special characters.
- Post Type Switcher integration never matched.
- Double-encoded HTML entities in text/textarea values.
- Tables are created with the site charset/collation (utf8mb4).
Install: download x-fields-v1.0.0.zip below and upload it from Plugins → Add New → Upload. Requires WordPress 6.0+ and PHP 7.4+.
X-Fields is a fork of Custom Field Suite by Matt Gibbs. Upgrading from CFS: deactivate it, activate X-Fields — your data is migrated automatically.