fix: verify option writes before treating update_option() false as failure

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
2026-09-26 00:47:35 +02:00
co-authored by Claude Opus 5.5
parent 9cc9d4f2dc
commit fc216e3eaf
4 changed files with 109 additions and 12 deletions
@@ -101,7 +101,9 @@ final class SettingsWhitelist
private function checkLanguage(mixed $value): ?string
{
if ($value === 'en_US' || $value === '') {
// Clients say en_US for English; '' is WordPress' internal storage form for it
// (see normalize()) and is not accepted as input.
if ($value === 'en_US') {
return null;
}