Skip to content

Fix switcher extension regression#21

Merged
Hug0-Drelon merged 2 commits intomasterfrom
fix-switcher-extension-regression
Feb 3, 2026
Merged

Fix switcher extension regression#21
Hug0-Drelon merged 2 commits intomasterfrom
fix-switcher-extension-regression

Conversation

@Hug0-Drelon
Copy link
Member

@Hug0-Drelon Hug0-Drelon commented Feb 3, 2026

What?

Fixes https://github.com/polylang/polylang-pro/actions/runs/21629432930/job/62337952594?pr=2901#step:3:335
A regression has been introduced in #20

How?

Do not recreate Trinary values, use the one from $type->getOffsetValueType($rawKey)->toBoolean()->isTrue() directly.
The ternary was broken because it has only two outputs possible. We need three for raw attribute (maybe, yes and no).

@Hug0-Drelon Hug0-Drelon self-assigned this Feb 3, 2026
@Hug0-Drelon Hug0-Drelon added the bug Something isn't working label Feb 3, 2026
@Screenfeed Screenfeed self-requested a review February 3, 2026 13:06
@Hug0-Drelon Hug0-Drelon merged commit 660dc7e into master Feb 3, 2026
2 checks passed
@Hug0-Drelon Hug0-Drelon deleted the fix-switcher-extension-regression branch February 3, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants