Skip to content

Commit

Permalink
Ignore some escaping errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lloc committed Sep 24, 2024
1 parent 51180b3 commit ae3f291
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions includes/MslsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,15 @@ public function __call( $method, $args ) {
);

if ( isset( $checkboxes[ $method ] ) ) {
echo ( new Group() )
$group = ( new Group() )
->add( new Checkbox( $method, $this->options->$method ) )
->add( new Label( $method, $checkboxes[ $method ] ) )
->render();
->add( new Label( $method, $checkboxes[ $method ] ) );

echo $group->render(); // phpcs:ignore WordPress.Security.EscapeOutput
} else {
$value = ! empty( $this->options->$method ) ? $this->options->$method : '';
echo ( new Text( $method, $value ) )->render();
$text = new Text( $method, ! empty( $this->options->$method ) ? $this->options->$method : '' );

echo $text->render(); // // phpcs:ignore WordPress.Security.EscapeOutput
}
}

Expand Down

0 comments on commit ae3f291

Please sign in to comment.