-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
Bug Description
False positive
Minimal Code Snippet
for ( $i = 1; $i <= 10; $i++ ) { ?>
<option value="<?php echo esc_attr( $i ); ?>" <?php echo ( $filter_importance === $i ) ? 'selected' : ''; ?> >
>=<?php echo esc_html( $i ); ?>
</option>
<?php } ?>
Error Code
WordPressVIPMinimum.Security.ProperEscapingFunction.htmlAttrNotByEscHTML for >=<?php echo esc_html( $i ); ?>
Environment
Use php -v
and composer show
to get versions.
Question | Answer |
---|---|
PHP version | 7.4.14 |
PHP_CodeSniffer version | 3.6.0 |
VIPCS version | 2.3.1 |
Tested Against master
branch?
- I have verified the issue still exists in the
master
branch of VIPCS. - I have verified the issue still exists in the
develop
branch of VIPCS.