Make WordPress Core


Ignore:
Timestamp:
02/16/2026 10:38:01 PM (8 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-functions.php

    r61302 r61654  
    336336        // Include file if function doesn't exist.
    337337        if ( ! function_exists( 'twenty_twenty_one_generate_css' ) ) {
    338                 require_once get_theme_file_path( 'inc/custom-css.php' ); // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound
     338                require_once get_theme_file_path( 'inc/custom-css.php' );
    339339        }
    340340
    … …  
    406406        if ( $blocks_content ) {
    407407                /** This filter is documented in wp-includes/post-template.php */
    408                 echo apply_filters( 'the_content', $blocks_content ); // phpcs:ignore WordPress.Security.EscapeOutput
     408                echo apply_filters( 'the_content', $blocks_content );
    409409                return true;
    410410        }
Note: See TracChangeset for help on using the changeset viewer.