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/template-parts/header/site-nav.php

    r53880 r61654  
    1515            <button id="primary-mobile-menu" class="button" aria-controls="primary-menu-list" aria-expanded="false">
    1616                <span class="dropdown-icon open"><?php esc_html_e( 'Menu', 'twentytwentyone' ); ?>
    17                     <?php echo twenty_twenty_one_get_icon_svg( 'ui', 'menu' ); // phpcs:ignore WordPress.Security.EscapeOutput ?>
     17                    <?php echo twenty_twenty_one_get_icon_svg( 'ui', 'menu' ); ?>
    1818                </span>
    1919                <span class="dropdown-icon close"><?php esc_html_e( 'Close', 'twentytwentyone' ); ?>
    20                     <?php echo twenty_twenty_one_get_icon_svg( 'ui', 'close' ); // phpcs:ignore WordPress.Security.EscapeOutput ?>
     20                    <?php echo twenty_twenty_one_get_icon_svg( 'ui', 'close' ); ?>
    2121                </span>
    2222            </button><!-- #primary-mobile-menu -->
Note: See TracChangeset for help on using the changeset viewer.