Skip to content

Commit

Permalink
Use test key for input ID
Browse files Browse the repository at this point in the history
This prevents fatal errors when plugins use closures for the test callback
  • Loading branch information
earnjam committed May 8, 2019
1 parent d6bd255 commit 8034679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site-health-tool-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ function shtm_settings_page() { ?>
if ( $checked ) {
echo 'checked="checked" ';
}
echo 'name="checked[]" id="' . $details['test'] . '" value="' . $test . '" />';
echo '<label for="' . $details['test'] . '">' . $details['label'] . '</label></li>';
echo 'name="checked[]" id="' . $test . '" value="' . $test . '" />';
echo '<label for="' . $test . '">' . $details['label'] . '</label></li>';
}
}
?>
Expand Down

0 comments on commit 8034679

Please sign in to comment.