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.
1 parent 7384082 commit 343539eCopy full SHA for 343539e
php/ui/component/class-on-off.php
@@ -55,7 +55,7 @@ protected function input( $struct ) {
55
$struct['attributes']['name'] = $this->get_name();
56
$struct['attributes']['id'] = $this->setting->get_slug();
57
$struct['attributes']['value'] = 'on';
58
- if ( 'true' === $this->setting->get_value() ) {
+ if ( 'on' === $this->setting->get_value() ) {
59
$struct['attributes']['checked'] = 'checked';
60
}
61
$struct['attributes']['class'] = 'cld-ui-input';
0 commit comments