Skip to content

Commit 84891e7

Browse files
committed
96: Handle both booleans
1 parent bc6035d commit 84891e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Theme_Mod_Command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ private function mod_to_string( $key, $value, &$list, $separator ) {
176176
$this->mod_to_string( $key . $separator . $child_key, $child_value, $list, $separator );
177177
}
178178
} else {
179-
// Explicitly handle false values to ensure they are displayed.
180-
if ( false === $value ) {
181-
$value = '[false]';
179+
// Explicitly handle boolean values to ensure they are displayed correctly.
180+
if ( is_bool( $value ) ) {
181+
$value = $value ? '[true]' : '[false]';
182182
}
183183

184184
$list[] = array(

0 commit comments

Comments
 (0)