Repository navigation
v0.23.0
What's Changed
Added
fields-validatewarns onwp.wpml_cf_preferencesset by hand on a leaf
field. The key overrides thetranslatablemapping and nothing checked
it. A hand-written3means Copy once in WPML, not Translate, so the field
copies its value to every language. The newLeafWpmlPreferenceLinterwarns
on3or0(non-canonical for a leaf) and namestranslatable: trueas
the way to write Translate. A1or2gets a softer "redundant" warning.
Containers and fields without the key stay clean. Nested rows, groups and
flexible layouts are walked. A warning never fails validation. Measured on
about 100 projects: 5 have leaf value fields on3, one of them 46 of 538
and another 34 of 48.
Pull Requests
- #97 — feat(lint): warn on wp.wpml_cf_preferences set by hand on a leaf field
Full Changelog: v0.22.0...v0.23.0