Make WordPress Core


Ignore:
Timestamp:
02/16/2026 10:38:01 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty-One: 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 WPThemeReview annotations carried over from upstream.

Follow-up to [49216].

Props rodrigosprimo.
See #64627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/inc/template-tags.php

    r61091 r61654  
    2828            /* translators: %s: Publish date. */
    2929            esc_html__( 'Published %s', 'twentytwentyone' ),
    30             $time_string // phpcs:ignore WordPress.Security.EscapeOutput
     30            $time_string
    3131        );
    3232        echo '</span>';
     
    8080            $post_format = get_post_format();
    8181            if ( 'aside' === $post_format || 'status' === $post_format ) {
    82                 echo '<p><a href="' . esc_url( get_permalink() ) . '">' . twenty_twenty_one_continue_reading_text() . '</a></p>'; // phpcs:ignore WordPress.Security.EscapeOutput
     82                echo '<p><a href="' . esc_url( get_permalink() ) . '">' . twenty_twenty_one_continue_reading_text() . '</a></p>';
    8383            }
    8484
     
    106106                        /* translators: %s: List of categories. */
    107107                        '<span class="cat-links">' . esc_html__( 'Categorized as %s', 'twentytwentyone' ) . ' </span>',
    108                         $categories_list // phpcs:ignore WordPress.Security.EscapeOutput
     108                        $categories_list
    109109                    );
    110110                }
     
    115115                        /* translators: %s: List of tags. */
    116116                        '<span class="tags-links">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>',
    117                         $tags_list // phpcs:ignore WordPress.Security.EscapeOutput
     117                        $tags_list
    118118                    );
    119119                }
     
    148148                        /* translators: %s: List of categories. */
    149149                        '<span class="cat-links">' . esc_html__( 'Categorized as %s', 'twentytwentyone' ) . ' </span>',
    150                         $categories_list // phpcs:ignore WordPress.Security.EscapeOutput
     150                        $categories_list
    151151                    );
    152152                }
     
    157157                        /* translators: %s: List of tags. */
    158158                        '<span class="tags-links">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>',
    159                         $tags_list // phpcs:ignore WordPress.Security.EscapeOutput
     159                        $tags_list
    160160                    );
    161161                }
Note: See TracChangeset for help on using the changeset viewer.