Skip to content

Commit a96cc84

Browse files
committed
#3995 - switch and button_set not saving within tabbed interface.
1 parent d5021e6 commit a96cc84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redux-core/inc/extensions/tabbed/tabbed/class-redux-tabbed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function output_field( array $field ) {
124124

125125
$default = $field['default'] ?? '';
126126

127-
$value = empty( $this->parent->options[ $orig_field_id ] ) ? $default : $this->parent->options[ $orig_field_id ];
127+
$value = empty( $this->parent->options[ $orig_field_id ] ) && 0 !== (int) $this->parent->options[ $orig_field_id ] ? $default : $this->parent->options[ $orig_field_id ];
128128

129129
$this->parent->render_class->field_input( $field, $value );
130130

0 commit comments

Comments
 (0)