Skip to content

Commit

Permalink
Rebase from trunk (#517)
Browse files Browse the repository at this point in the history
Co-authored-by: Pau Argelaguet <pau@outlook.com>
  • Loading branch information
GaryJones and pauarge authored Nov 29, 2021
1 parent 8618656 commit ecec29d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UI/class-settings-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -760,9 +760,9 @@ public function print_multiple_checkboxes( array $args ): void {

foreach ( $select_options as $key => $val ) {
$selected = in_array( $val, $options[ $args['option_key'] ], true );
echo sprintf( "<p><input type='checkbox' name='%s[]' id='%s' value='%s' ", esc_attr( $name ), esc_attr( $name ), esc_attr( $key ) );
echo sprintf( '<p><input type="checkbox" name="%1$s[]" id="%1$s-%2$s" value="%2$s" ', esc_attr( $name ), esc_attr( $key ) );
echo checked( true === $selected, true, false );
echo sprintf( " /> <label for='%s'>%s</label></p>", esc_attr( $name ), esc_attr( $val ) );
echo sprintf( ' /> <label for="%1$s-%2$s">%2$s</label></p>', esc_attr( $name ), esc_attr( $val ) );
}

if ( isset( $args['help_text'] ) ) {
Expand Down

0 comments on commit ecec29d

Please sign in to comment.