Skip to content

fix(plugins): Sync FAQ question attribute with Polylang - #37

Merged
francoistibo merged 1 commit into
developfrom
fix/faq-autoply-attribut-translation
Sep 22, 2026
Merged

francoistibo merged 1 commit into
developfrom
fix/faq-autoply-attribut-translation

Conversation

@rsanchez-beapi

Copy link
Copy Markdown
Contributor

Summary

  • Register blockparty/faq-question → question on pll_blocks_rules_for_attributes so Polylang/Autopoly translates the attribute along with the saved HTML.
  • Fixes block validation failures when editing EN (or other translated) pages that contain the FAQ block.

Context

faq-question stores the question both as a JSON attribute and in the HTML. Without the Polylang rules, Autopoly only updated the HTML, leaving the attribute in the source language and breaking Gutenberg validation.

Test plan

  • Edit an EN page with a FAQ block: no validation error on faq-question.
  • Re-translate (or create a new translation) FR → EN: question attribute and <span> HTML are both in EN.
  • Confirm FR source pages are unchanged.
  • Note: already broken EN pages may need a re-sync / re-translation after this fix.

@francoistibo
francoistibo merged commit 3982622 into develop Sep 22, 2026
1 check passed
@firestar300
firestar300 deleted the fix/faq-autoply-attribut-translation branch September 23, 2026 07:02
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