Closed joemaller closed 3 weeks ago
Some of boolean settings are coming back from the block editor as boolean-ish strings. This is obviously a problem with "false" since PHP coerces non-empty strings to true:
"false"
$var = "false"; $ugh = (bool) $var; // coerces to true
Some of boolean settings are coming back from the block editor as boolean-ish strings. This is obviously a problem with
"false"
since PHP coerces non-empty strings to true: