Skip to content

EDD: fix conflicting translation action for edd_variable_prices - #559

Merged
dgwatkins merged 2 commits into
OnTheGoSystems:masterfrom
SNO7E-G:fix-edd-variable-prices-conflicting-action
Aug 3, 2026
Merged

EDD: fix conflicting translation action for edd_variable_prices#559
dgwatkins merged 2 commits into
OnTheGoSystems:masterfrom
SNO7E-G:fix-edd-variable-prices-conflicting-action

Conversation

@SNO7E-G

@SNO7E-G SNO7E-G commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary: Resolves a contradictory declaration so Easy Digital Downloads variable-price option names are translated correctly.

Problem: edd_variable_prices is declared twice with conflicting actions — action="copy" and action="translate" — alongside a <custom-fields-texts> block that scopes translation to the name sub-key. WPML can only apply one action, so the intent is ambiguous.

Change: Removes the stray action="copy", leaving a single action="translate" plus the existing <custom-fields-texts> block — exactly matching the identically-structured sibling edd_download_files in the same file.

Risk: Behaviour change (intended) — price-option names become translatable; amounts and all other sub-keys are preserved (not registered for translation). Backed by a repo-wide check: every <custom-fields-texts> key pairs with action="translate" (avada _fusion, CF7 _mail/_mail_2, edd_download_files, sitepress footnotes, Yoast _yoast_wpseo_focuskeywords) — edd_variable_prices was the only outlier. Schema validation cannot confirm this one (both copy and translate validate), so correctness rests on the convention evidence. Happy for maintainers to make the final call or convert to an issue.

Verified: schema passes · build-index passes · the key now resolves to a single translate + the texts-block · diff is one deletion.

SNO7E-G added 2 commits July 22, 2026 17:27
edd_variable_prices was declared twice in <custom-fields> with
contradictory actions: action="copy" and action="translate". This
removes the stray action="copy" so the field is handled consistently
with its identically-structured sibling edd_download_files and with
every other key in a <custom-fields-texts> block across the repo:
action="translate" plus a <custom-fields-texts> block that scopes
translation to the "name" sub-key of each price option.

This is a behaviour fix, not a no-op: price-option names become
translatable. Amounts and all other sub-keys are preserved (they are
not registered for translation).

@dgwatkins dgwatkins left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 @SNO7E-G

@dgwatkins
dgwatkins merged commit d088b3b into OnTheGoSystems:master Aug 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants