Skip to content

X-Fields 1.0.0 — First release

Choose a tag to compare

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

First release of X-Fields, forked from Custom Field Suite 2.6.7.

Changed

  • Renamed to X-Fields: CFS() → XF(), prefix cfs_ → xf_ (classes, hooks, options, tables, CSS/JS), text domain x-fields, field group post type xf_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 unless XF_REMOVE_ALL_DATA is 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 require edit_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, target whitelisted, 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.