Skip to content

Commit 7cf61a9

Browse files
committed
checked doesn't echo
Post types are not selected in the "On Specific Post Types" section in the plugin settings #155
1 parent e96b74a commit 7cf61a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

views/partials/_disable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class="remove__checklist"
129129
id="remove__checklist__item-<?php echo esc_attr($key); ?>"
130130
name="disabled_types[]"
131131
value="<?php echo esc_attr($key); ?>"
132-
<?php checked(in_array($key, $this->get_disabled_post_types()), true, false); ?>>
132+
<?php checked(in_array($key, $this->get_disabled_post_types()), true, true); ?>>
133133
<label for="remove__checklist__item-<?php echo esc_attr($key); ?>">
134134
<i class="icon" tabindex="0"></i>
135135
<?php echo esc_html($value->labels->name); ?>

0 commit comments

Comments
 (0)