We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
switch
button_set
tabbed
1 parent d5021e6 commit a96cc84Copy full SHA for a96cc84
redux-core/inc/extensions/tabbed/tabbed/class-redux-tabbed.php
@@ -124,7 +124,7 @@ public function output_field( array $field ) {
124
125
$default = $field['default'] ?? '';
126
127
- $value = empty( $this->parent->options[ $orig_field_id ] ) ? $default : $this->parent->options[ $orig_field_id ];
+ $value = empty( $this->parent->options[ $orig_field_id ] ) && 0 !== (int) $this->parent->options[ $orig_field_id ] ? $default : $this->parent->options[ $orig_field_id ];
128
129
$this->parent->render_class->field_input( $field, $value );
130
0 commit comments