Skip to content

Commit 343539e

Browse files
committed
on for compare
1 parent 7384082 commit 343539e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/ui/component/class-on-off.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function input( $struct ) {
5555
$struct['attributes']['name'] = $this->get_name();
5656
$struct['attributes']['id'] = $this->setting->get_slug();
5757
$struct['attributes']['value'] = 'on';
58-
if ( 'true' === $this->setting->get_value() ) {
58+
if ( 'on' === $this->setting->get_value() ) {
5959
$struct['attributes']['checked'] = 'checked';
6060
}
6161
$struct['attributes']['class'] = 'cld-ui-input';

0 commit comments

Comments
 (0)