Skip to content

Commit 10ed8a5

Browse files
committed
Coding Standards: Remove stale WPCS inline comments in Twenty Nineteen
The `// WPCS: XSS OK.` comments use a legacy annotation format no longer recognized by PHPCS. This format was introduced in WPCS 0.4.0, deprecated in WPCS 2.0.0 (see WordPress/WordPress-Coding-Standards 1580), and support was fully removed in WPCS 3.0.0 (see WordPress/WordPress-Coding-Standards 1908) in favor of the PHPCS native `phpcs:ignore` annotations. Additionally, the `WordPress.Security.EscapeOutput` sniff these comments reference is part of the `WordPress-Extra` standard, not the `WordPress-Core` standard used in this repository.
1 parent 1c31423 commit 10ed8a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-content/themes/twentynineteen/inc/template-tags.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function twentynineteen_entry_footer() {
9292
/* translators: Hidden accessibility text. */
9393
__( 'Posted in', 'twentynineteen' ),
9494
$categories_list
95-
); // WPCS: XSS OK.
95+
);
9696
}
9797

9898
$tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
@@ -104,7 +104,7 @@ function twentynineteen_entry_footer() {
104104
/* translators: Hidden accessibility text. */
105105
__( 'Tags:', 'twentynineteen' ),
106106
$tags_list
107-
); // WPCS: XSS OK.
107+
);
108108
}
109109
}
110110

0 commit comments

Comments
 (0)