mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user