Make WordPress Core


Ignore:
Timestamp:
09/28/2023 12:02:47 AM (21 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove redundant ignore annotations.

This removes ignore annotations which are ignoring an error which would not be thrown for that code.

Includes tidying up the format of the ignore annotation:

  • Customary one space between the // and the start of the comment.
  • There should be no spaces in the comma-separated sniff list.

Follow-up to [45607], [47185], [49200], [53152].

Props jrf.
See #59161.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/canonical.php

    r56718 r56738  
    958958        if ( get_query_var( 'post_type' ) ) {
    959959            if ( is_array( get_query_var( 'post_type' ) ) ) {
    960                 // phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare
    961960                $where .= " AND post_type IN ('" . join( "', '", esc_sql( get_query_var( 'post_type' ) ) ) . "')";
    962961            } else {
Note: See TracChangeset for help on using the changeset viewer.