Coding Standards: Remove redundant ignore annotations, take 4.

This removes ignore annotations related to sniffs which are not used by WP Core (like sniffs in the `WordPress-Extra` ruleset).

Follow-up to [48072], [51003], [55204], [56714].

Props jrf.
See #59161.

git-svn-id: https://develop.svn.wordpress.org/trunk@56752 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2023-10-01 00:20:53 +00:00
parent 00ed25e2c9
commit 8bbeee43b6
5 changed files with 3 additions and 9 deletions
@@ -131,7 +131,6 @@ class WP_Sitemaps_Renderer {
if ( ! empty( $index_xml ) ) {
// All output is escaped within get_sitemap_index_xml().
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo $index_xml;
}
}
@@ -196,7 +195,6 @@ class WP_Sitemaps_Renderer {
if ( ! empty( $sitemap_xml ) ) {
// All output is escaped within get_sitemap_xml().
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo $sitemap_xml;
}
}
@@ -25,12 +25,12 @@ class WP_Sitemaps_Stylesheet {
header( 'Content-Type: application/xml; charset=UTF-8' );
if ( 'sitemap' === $type ) {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- All content escaped below.
// All content is escaped below.
echo $this->get_sitemap_stylesheet();
}
if ( 'index' === $type ) {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- All content escaped below.
// All content is escaped below.
echo $this->get_sitemap_index_stylesheet();
}
+1 -1
View File
@@ -20,7 +20,7 @@ $template_html = get_the_block_template_html();
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php echo $template_html; // phpcs:ignore WordPress.Security.EscapeOutput ?>
<?php echo $template_html; ?>
<?php wp_footer(); ?>
</body>