From f441dd1965774760f09ac9bb0fb37cdd302eb3e9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 14 Feb 2026 23:46:42 +0000 Subject: [PATCH] Twenty Twenty: Remove `EscapeOutput` annotations. These are from the `WordPress-Extra` standard, which is not included in the `phpcs.xml.dist` configuration (the repository uses `WordPress-Core`). Includes removing unnecessary `WordPress.WP.CapitalPDangit.Misspelled` annotation on the `wordpress` array key, as the `CapitalPDangit` sniff skips array definitions by design. Follow-up to [46271], [46445]. Props rodrigosprimo. See #64627. Built from https://develop.svn.wordpress.org/trunk@61643 git-svn-id: http://core.svn.wordpress.org/trunk@60954 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../twentytwenty/classes/class-twentytwenty-svg-icons.php | 1 - .../classes/class-twentytwenty-walker-comment.php | 6 +++--- wp-content/themes/twentytwenty/comments.php | 2 +- wp-content/themes/twentytwenty/inc/custom-css.php | 2 +- wp-content/themes/twentytwenty/inc/svg-icons.php | 2 +- wp-content/themes/twentytwenty/inc/template-tags.php | 6 +++--- wp-content/themes/twentytwenty/searchform.php | 2 +- .../themes/twentytwenty/template-parts/content-cover.php | 4 ++-- .../themes/twentytwenty/template-parts/entry-header.php | 2 +- .../themes/twentytwenty/template-parts/featured-image.php | 2 +- .../twentytwenty/template-parts/footer-menus-widgets.php | 2 +- .../themes/twentytwenty/template-parts/pagination.php | 2 +- wp-includes/version.php | 2 +- 13 files changed, 17 insertions(+), 18 deletions(-) diff --git a/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php b/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php index a87bf84db2..946045e982 100644 --- a/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php +++ b/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php @@ -327,7 +327,6 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) { 'whatsapp' => ' ', - // phpcs:disable WordPress.WP.CapitalPDangit.Misspelled 'wordpress' => '', 'yelp' => '', diff --git a/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php b/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php index eb2ec8efe5..8012677ce8 100644 --- a/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php +++ b/wp-content/themes/twentytwenty/classes/class-twentytwenty-walker-comment.php @@ -37,7 +37,7 @@ if ( ! class_exists( 'TwentyTwenty_Walker_Comment' ) ) { $tag = ( 'div' === $args['style'] ) ? 'div' : 'li'; ?> - < id="comment-" has_children ? 'parent' : '', $comment ); ?>> + < id="comment-" has_children ? 'parent' : '', $comment ); ?>>