Make WordPress Core

Changeset 56752


Ignore:
Timestamp:
10/01/2023 12:20:53 AM (5 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove redundant ignore annotations, take 4.

This removes ignore annotations related to sniffs which are not used by WP Core (like sniffs in the WordPress-Extra ruleset).

Follow-up to [48072], [51003], [55204], [56714].

Props jrf.
See #59161.

Location:
trunk/src
Files:
5 edited

Legend:

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

    r56735 r56752  
    27652765                '<code>wp_opcache_invalidate_directory()</code>'
    27662766            );
    2767             // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
    27682767            trigger_error( $error_message );
    27692768        }
  • trunk/src/wp-admin/includes/post.php

    r56714 r56752  
    20122012     * Ignoring sanitization to avoid altering meta. Ignoring the nonce check because
    20132013     * this is hooked on inner core hooks where a valid nonce was already checked.
    2014      *
    2015      * @phpcs:disable WordPress.Security
    20162014     */
    20172015    $posted_data = isset( $_POST['data']['wp_autosave'] ) ? $_POST['data']['wp_autosave'] : $_POST;
    2018     // phpcs:enable
    20192016
    20202017    $post_type = get_post_type( $new_autosave['post_parent'] );
  • trunk/src/wp-includes/sitemaps/class-wp-sitemaps-renderer.php

    r55210 r56752  
    132132        if ( ! empty( $index_xml ) ) {
    133133            // All output is escaped within get_sitemap_index_xml().
    134             // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    135134            echo $index_xml;
    136135        }
     
    197196        if ( ! empty( $sitemap_xml ) ) {
    198197            // All output is escaped within get_sitemap_xml().
    199             // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    200198            echo $sitemap_xml;
    201199        }
  • trunk/src/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php

    r55210 r56752  
    2626
    2727        if ( 'sitemap' === $type ) {
    28             // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- All content escaped below.
     28            // All content is escaped below.
    2929            echo $this->get_sitemap_stylesheet();
    3030        }
    3131
    3232        if ( 'index' === $type ) {
    33             // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- All content escaped below.
     33            // All content is escaped below.
    3434            echo $this->get_sitemap_index_stylesheet();
    3535        }
  • trunk/src/wp-includes/template-canvas.php

    r52352 r56752  
    2121<?php wp_body_open(); ?>
    2222
    23 <?php echo $template_html; // phpcs:ignore WordPress.Security.EscapeOutput ?>
     23<?php echo $template_html; ?>
    2424
    2525<?php wp_footer(); ?>
Note: See TracChangeset for help on using the changeset viewer.