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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user