Make WordPress Core


Ignore:
Timestamp:
02/14/2026 11:45:50 PM (2 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

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

    r61317 r61643  
    9999    }
    100100
    101     echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     101    echo $html;
    102102}
    103103
     
    136136    }
    137137
    138     echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     138    echo $html;
    139139}
    140140
     
    202202function twentytwenty_the_post_meta( $post_id = null, $location = 'single-top' ) {
    203203
    204     echo twentytwenty_get_post_meta( $post_id, $location ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in twentytwenty_get_post_meta().
     204    echo twentytwenty_get_post_meta( $post_id, $location );
    205205}
    206206
Note: See TracChangeset for help on using the changeset viewer.