You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coding Standards: Remove phpcs:ignore annotations for sniffs not checked in this repository
The `phpcs.xml.dist` configuration uses the `WordPress-Core` standard.
These annotations reference sniffs that are part of `WordPress-Extra`,
which is not included:
- `WordPress.Security.EscapeOutput`
- `WordPress.Security.NonceVerification`
- `WordPress.WP.AlternativeFunctions`
- `WordPress.PHP.DevelopmentFunctions`
- `WordPress.PHP.IniSet`
Some of these annotations were carried over from upstream theme
repositories or external plugins.
If in the future there is a decision to add `WordPress-Extra`, I think
it makes sense to evaluate each error/warning to decide what should be
ignored and what should not.
echo$comment_reply_link;// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Link is escaped in https://developer.wordpress.org/reference/functions/get_comment_reply_link/
<div class="cover-header <?phpecho$cover_header_classes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static output ?>"<?phpecho$cover_header_style;// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- We need to double check this, but for now, we want to pass PHPCS ;)?>>
<div class="cover-color-overlay color-accent<?phpechoesc_attr( $color_overlay_classes ); ?>"<?phpecho$color_overlay_style; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- We need to double check this, but for now, we want to pass PHPCS ;) ?>></div>
0 commit comments