Skip to content

Commit

Permalink
Add ignore comment on valid user input usage
Browse files Browse the repository at this point in the history
Co-authored-by: Kelly Dwan <[email protected]>
  • Loading branch information
sirreal and ryelle authored Jul 26, 2024
1 parent 579eeea commit e24e9c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
$icons_sections[] = $icon_section;
}

$selected_icon = $_GET['icon'] ?? '';
$selected_icon = $_GET['icon'] ?? ''; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput -- Value checked against icon safelist.
if ( ! array_key_exists( $selected_icon, $icons ) ) {
$selected_icon = array_rand( $icons );
}
Expand Down

0 comments on commit e24e9c1

Please sign in to comment.